chore: add setupVitest to tsconfig (#8009)

This commit is contained in:
JayFate 2023-04-04 18:14:45 +08:00 committed by GitHub
parent f3145a915a
commit 10317fa01e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View 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(() => {

View 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"
]
}