@@ -121,12 +121,7 @@ describe('yupResolver', () => {
121121 foo : [ { loose : null } ] ,
122122 } ;
123123
124- const output = await yupResolver ( schema ) (
125- // @ts -expect-error
126- data ,
127- { } ,
128- true ,
129- ) ;
124+ const output = await yupResolver ( schema ) ( data , { } , true ) ;
130125 expect ( output ) . toMatchSnapshot ( ) ;
131126 expect ( output . errors [ 'foo' ] ?. [ 0 ] ?. [ 'loose' ] ) . toBeDefined ( ) ;
132127 expect ( output . errors [ 'foo' ] ?. [ 0 ] ?. [ 'loose' ] ?. types )
@@ -168,7 +163,6 @@ describe('yupResolver', () => {
168163 foo : [ { loose : null } ] ,
169164 } ;
170165
171- // @ts -expect-error
172166 const output = await yupResolver ( schema ) ( data ) ;
173167 expect ( output ) . toMatchSnapshot ( ) ;
174168 expect ( output . errors . age ?. types ) . toBeUndefined ( ) ;
@@ -185,7 +179,6 @@ describe('yupResolver', () => {
185179 } ;
186180 const output = await yupResolver ( schema , {
187181 abortEarly : true ,
188- // @ts -expect-error
189182 } ) ( data , undefined , true ) ;
190183
191184 expect ( output . errors ) . toMatchInlineSnapshot ( `
@@ -208,7 +201,6 @@ describe('yupResolver', () => {
208201 inner : [ { path : '' , message : 'error1' , type : 'required' } ] ,
209202 } ) ;
210203
211- // @ts -expect-error
212204 const output = await yupResolver ( schemaWithContext ) ( data ) ;
213205 expect ( output ) . toMatchSnapshot ( ) ;
214206 } ) ;
@@ -245,7 +237,6 @@ describe('validateWithSchema', () => {
245237 } ) ,
246238 } ) ;
247239
248- // @ts -expect-error
249240 expect ( await yupResolver ( schemaWithContext ) ( data , { min : true } ) )
250241 . toMatchInlineSnapshot ( `
251242 Object {
0 commit comments