Skip to content

Commit ca893f1

Browse files
committed
refactor(common): generate type for queries array from Testing Library
1 parent 839bb94 commit ca893f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {Queries} from './typedefs'
1+
import {queries} from '@testing-library/dom'
22

3-
export const queryNames: Array<keyof Queries> = [
3+
export const queryNames: Array<keyof typeof queries> = [
44
'queryByPlaceholderText',
55
'queryAllByPlaceholderText',
66
'getByPlaceholderText',

0 commit comments

Comments
 (0)