]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: add setupVitest to tsconfig (#8009)
authorJayFate <48240828+JayFate@users.noreply.github.com>
Tue, 4 Apr 2023 10:14:45 +0000 (18:14 +0800)
committerGitHub <noreply@github.com>
Tue, 4 Apr 2023 10:14:45 +0000 (18:14 +0800)
scripts/setupVitest.ts
tsconfig.json

index 81a78d2985ae48b967eeec8b5c7364dde6a41adf..c555b0fa5e8ef7a6c14e2ad7be69bd4cd4d9e09b 100644 (file)
@@ -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<string> = new Set()
 
 beforeEach(() => {
index bbe12407bc15efb11bdd474943922e1352cbea64..e575f0c4c90b7fc1958a9f7e4a0c04610404454e 100644 (file)
@@ -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"
   ]
 }