From a0e96411fae59d4f752f238578b4534b0b398f7e Mon Sep 17 00:00:00 2001 From: Yongho Lee Date: Wed, 18 Dec 2024 08:07:36 +0900 Subject: [PATCH] feat: add missing globals (vitest-dev#598) (#599) --- src/index.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 584a13e..1e0a1ba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -254,6 +254,8 @@ const plugin = { test: 'writable', describe: 'writable', it: 'writable', + expectTypeOf: 'writable', + assertType: 'writable', expect: 'writable', assert: 'writable', vitest: 'writable', @@ -261,7 +263,9 @@ const plugin = { beforeAll: 'writable', afterAll: 'writable', beforeEach: 'writable', - afterEach: 'writable' + afterEach: 'writable', + onTestFailed: 'writable', + onTestFinished: 'writable' } } } @@ -273,6 +277,8 @@ const plugin = { test: true, describe: true, it: true, + expectTypeOf: true, + assertType: true, expect: true, assert: true, vitest: true, @@ -280,7 +286,9 @@ const plugin = { beforeAll: true, afterAll: true, beforeEach: true, - afterEach: true + afterEach: true, + onTestFailed: true, + onTestFinished: true } } }