@@ -8,7 +8,7 @@ describe('render query and utility types', () => {
88 test ( 'render result has default queries' , ( ) => {
99 const result = subject . render ( Component , { name : 'Alice' } )
1010
11- expectTypeOf ( result . getByRole ) . parameters . toMatchTypeOf <
11+ expectTypeOf ( result . getByRole ) . parameters . toExtend <
1212 [ role : subject . ByRoleMatcher , options ?: subject . ByRoleOptions ]
1313 > ( )
1414 } )
@@ -27,25 +27,25 @@ describe('render query and utility types', () => {
2727 { queries : { getByVibes } }
2828 )
2929
30- expectTypeOf ( result . getByVibes ) . parameters . toMatchTypeOf < [ vibes : string ] > ( )
30+ expectTypeOf ( result . getByVibes ) . parameters . toExtend < [ vibes : string ] > ( )
3131 } )
3232
3333 test ( 'act is an async function' , ( ) => {
34- expectTypeOf ( subject . act ) . toMatchTypeOf < ( ) => Promise < void > > ( )
34+ expectTypeOf ( subject . act ) . toExtend < ( ) => Promise < void > > ( )
3535 } )
3636
3737 test ( 'act accepts a sync function' , ( ) => {
38- expectTypeOf ( subject . act ) . toMatchTypeOf < ( fn : ( ) => void ) => Promise < void > > ( )
38+ expectTypeOf ( subject . act ) . toExtend < ( fn : ( ) => void ) => Promise < void > > ( )
3939 } )
4040
4141 test ( 'act accepts an async function' , ( ) => {
42- expectTypeOf ( subject . act ) . toMatchTypeOf <
42+ expectTypeOf ( subject . act ) . toExtend <
4343 ( fn : ( ) => Promise < void > ) => Promise < void >
4444 > ( )
4545 } )
4646
4747 test ( 'fireEvent is an async function' , ( ) => {
48- expectTypeOf ( subject . fireEvent ) . toMatchTypeOf <
48+ expectTypeOf ( subject . fireEvent ) . toExtend <
4949 (
5050 element : Element | Node | Document | Window ,
5151 event : Event
@@ -54,7 +54,7 @@ describe('render query and utility types', () => {
5454 } )
5555
5656 test ( 'fireEvent[eventName] is an async function' , ( ) => {
57- expectTypeOf ( subject . fireEvent . click ) . toMatchTypeOf <
57+ expectTypeOf ( subject . fireEvent . click ) . toExtend <
5858 (
5959 element : Element | Node | Document | Window ,
6060 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
0 commit comments