@@ -8,7 +8,7 @@ describe('render query and utility types', () => {
8
8
test ( 'render result has default queries' , ( ) => {
9
9
const result = subject . render ( Component , { name : 'Alice' } )
10
10
11
- expectTypeOf ( result . getByRole ) . parameters . toMatchTypeOf <
11
+ expectTypeOf ( result . getByRole ) . parameters . toExtend <
12
12
[ role : subject . ByRoleMatcher , options ?: subject . ByRoleOptions ]
13
13
> ( )
14
14
} )
@@ -27,25 +27,25 @@ describe('render query and utility types', () => {
27
27
{ queries : { getByVibes } }
28
28
)
29
29
30
- expectTypeOf ( result . getByVibes ) . parameters . toMatchTypeOf < [ vibes : string ] > ( )
30
+ expectTypeOf ( result . getByVibes ) . parameters . toExtend < [ vibes : string ] > ( )
31
31
} )
32
32
33
33
test ( 'act is an async function' , ( ) => {
34
- expectTypeOf ( subject . act ) . toMatchTypeOf < ( ) => Promise < void > > ( )
34
+ expectTypeOf ( subject . act ) . toExtend < ( ) => Promise < void > > ( )
35
35
} )
36
36
37
37
test ( 'act accepts a sync function' , ( ) => {
38
- expectTypeOf ( subject . act ) . toMatchTypeOf < ( fn : ( ) => void ) => Promise < void > > ( )
38
+ expectTypeOf ( subject . act ) . toExtend < ( fn : ( ) => void ) => Promise < void > > ( )
39
39
} )
40
40
41
41
test ( 'act accepts an async function' , ( ) => {
42
- expectTypeOf ( subject . act ) . toMatchTypeOf <
42
+ expectTypeOf ( subject . act ) . toExtend <
43
43
( fn : ( ) => Promise < void > ) => Promise < void >
44
44
> ( )
45
45
} )
46
46
47
47
test ( 'fireEvent is an async function' , ( ) => {
48
- expectTypeOf ( subject . fireEvent ) . toMatchTypeOf <
48
+ expectTypeOf ( subject . fireEvent ) . toExtend <
49
49
(
50
50
element : Element | Node | Document | Window ,
51
51
event : Event
@@ -54,7 +54,7 @@ describe('render query and utility types', () => {
54
54
} )
55
55
56
56
test ( 'fireEvent[eventName] is an async function' , ( ) => {
57
- expectTypeOf ( subject . fireEvent . click ) . toMatchTypeOf <
57
+ expectTypeOf ( subject . fireEvent . click ) . toExtend <
58
58
(
59
59
element : Element | Node | Document | Window ,
60
60
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
0 commit comments