File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ import {Simulate as ReactSimulate} from 'react-dom/test-utils'
2
2
3
3
type TextMatchFunction = ( content : string , element : HTMLElement ) => boolean
4
4
type TextMatch = string | RegExp | TextMatchFunction
5
+ type ExactTextMatch = string | RegExp | TextMatchFunction
5
6
6
7
interface RenderResult {
7
8
container : HTMLDivElement
8
9
rerender : ( ui : React . ReactElement < any > ) => void
9
10
unmount : VoidFunction
10
- queryByTestId : ( id : TextMatch ) => HTMLElement | null
11
- getByTestId : ( id : TextMatch ) => HTMLElement
11
+ queryByTestId : ( id : ExactTextMatch ) => HTMLElement | null
12
+ getByTestId : ( id : ExactTextMatch ) => HTMLElement
12
13
queryByText : ( id : TextMatch ) => HTMLElement | null
13
14
getByText : ( text : TextMatch ) => HTMLElement
14
15
queryByPlaceholderText : ( id : TextMatch ) => HTMLElement | null
You can’t perform that action at this time.
0 commit comments