From: JayFate <48240828+JayFate@users.noreply.github.com> Date: Tue, 4 Apr 2023 10:14:45 +0000 (+0800) Subject: chore: add setupVitest to tsconfig (#8009) X-Git-Tag: v3.3.0-alpha.8~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10317fa01e6d6adcaed20e6093bf9eb1382131a6;p=thirdparty%2Fvuejs%2Fcore.git chore: add setupVitest to tsconfig (#8009) --- diff --git a/scripts/setupVitest.ts b/scripts/setupVitest.ts index 81a78d2985..c555b0fa5e 100644 --- a/scripts/setupVitest.ts +++ b/scripts/setupVitest.ts @@ -1,4 +1,4 @@ -import { vi } from 'vitest' +import { vi, type SpyInstance } from 'vitest' expect.extend({ toHaveBeenWarned(received: string) { @@ -65,7 +65,7 @@ expect.extend({ } }) -let warn +let warn: SpyInstance const asserted: Set = new Set() beforeEach(() => { diff --git a/tsconfig.json b/tsconfig.json index bbe12407bc..e575f0c4c9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,6 +33,7 @@ "packages/runtime-dom/types/jsx.d.ts", "packages/*/__tests__", "packages/dts-test", - "packages/vue/jsx-runtime" + "packages/vue/jsx-runtime", + "scripts/setupVitest.ts" ] }