File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export default ({ expect }: typeof import('vitest')) => {
33 0 : `test[0]` ,
44 foo : [
55 function ( ) {
6- // @ts -ignore
6+ // @ts -expect-error
77 return this [ 0 ]
88 }
99 ] ,
Original file line number Diff line number Diff line change 11export default ( { expect } : typeof import ( 'vitest' ) ) => {
22 class Foo {
3- declare foo : number ;
3+ declare foo : number
44
55 constructor ( ) {
66 this . foo = 1
@@ -20,13 +20,13 @@ export default ({ expect }: typeof import('vitest')) => {
2020 bar ( ) {
2121 return 2
2222 } ,
23- // @ts -ignore
23+ // @ts -expect-error
2424 baz ( a = this . foo , b = this . bar ( ) ) {
2525 return a + b
2626 }
2727 }
2828
29- const foo = new Foo ( ) ;
29+ const foo = new Foo ( )
3030 expect ( foo . baz ( 3 , 4 ) ) . toBe ( 7 ) // Is this the real life?
3131 expect ( foo . baz ( ) ) . toBe ( 3 ) // Is this just fantasy?
3232
You can’t perform that action at this time.
0 commit comments