File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 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'
22
33type TextMatchFunction = ( content : string , element : HTMLElement ) => boolean
44type TextMatch = string | RegExp | TextMatchFunction
5+ type ExactTextMatch = string | RegExp | TextMatchFunction
56
67interface RenderResult {
78 container : HTMLDivElement
89 rerender : ( ui : React . ReactElement < any > ) => void
910 unmount : VoidFunction
10- queryByTestId : ( id : TextMatch ) => HTMLElement | null
11- getByTestId : ( id : TextMatch ) => HTMLElement
11+ queryByTestId : ( id : ExactTextMatch ) => HTMLElement | null
12+ getByTestId : ( id : ExactTextMatch ) => HTMLElement
1213 queryByText : ( id : TextMatch ) => HTMLElement | null
1314 getByText : ( text : TextMatch ) => HTMLElement
1415 queryByPlaceholderText : ( id : TextMatch ) => HTMLElement | null
You can’t perform that action at this time.
0 commit comments