Explorar o código

chore: add setupVitest to tsconfig (#8009)

JayFate %!s(int64=3) %!d(string=hai) anos
pai
achega
10317fa01e
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 2 2
      scripts/setupVitest.ts
  2. 2 1
      tsconfig.json

+ 2 - 2
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<string> = new Set()
 
 beforeEach(() => {

+ 2 - 1
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"
   ]
 }