Skip to content

Commit 949d559

Browse files
committed
adds compulsory type for filterWithName function
1 parent ae3d062 commit 949d559

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/helpers/makeA11yQuery.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
import waitFor from '../waitFor';
33
import { getQueriesForElement } from '../within';
44
import type { WaitForOptions } from '../waitFor';
5-
import type { QueryOptions } from './a11yAPI';
65
import {
76
ErrorWithStack,
87
prepareErrorMessage,
98
createQueryByError,
109
} from './errors';
1110

11+
type QueryOptions = {
12+
name: string | RegExp,
13+
};
14+
1215
function isNodeValid(node: ReactTestInstance) {
1316
return typeof node.type === 'string';
1417
}

0 commit comments

Comments
 (0)