diff --git a/game-scripts-tests/this_array_in_object.ts b/game-scripts-tests/this_array_in_object.ts index 8f4f347..596060e 100644 --- a/game-scripts-tests/this_array_in_object.ts +++ b/game-scripts-tests/this_array_in_object.ts @@ -3,7 +3,7 @@ export default ({ expect }: typeof import('vitest')) => { 0: `test[0]`, foo: [ function () { - // @ts-ignore + // @ts-expect-error return this[0] } ], diff --git a/game-scripts-tests/this_in_default_argument.ts b/game-scripts-tests/this_in_default_argument.ts index fc378b7..f7d0de5 100644 --- a/game-scripts-tests/this_in_default_argument.ts +++ b/game-scripts-tests/this_in_default_argument.ts @@ -1,6 +1,6 @@ export default ({ expect }: typeof import('vitest')) => { class Foo { - declare foo: number; + declare foo: number constructor() { this.foo = 1 @@ -20,13 +20,13 @@ export default ({ expect }: typeof import('vitest')) => { bar() { return 2 }, - // @ts-ignore + // @ts-expect-error baz(a = this.foo, b = this.bar()) { return a + b } } - const foo = new Foo(); + const foo = new Foo() expect(foo.baz(3, 4)).toBe(7) // Is this the real life? expect(foo.baz()).toBe(3) // Is this just fantasy?