We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SpyInstance
MockInstance
1 parent a03514e commit 1b522caCopy full SHA for 1b522ca
packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts
@@ -1,8 +1,8 @@
1
-import { type SpyInstance } from 'vitest'
+import { type MockInstance } from 'vitest'
2
import { render, h } from '@vue/runtime-dom'
3
4
describe('customized built-in elements support', () => {
5
- let createElement: SpyInstance
+ let createElement: MockInstance
6
afterEach(() => {
7
createElement.mockRestore()
8
})
scripts/setupVitest.ts
@@ -1,4 +1,4 @@
expect.extend({
toHaveBeenWarned(received: string) {
@@ -65,7 +65,7 @@ expect.extend({
65
}
66
67
68
-let warn: SpyInstance
+let warn: MockInstance
69
const asserted: Set<string> = new Set()
70
71
beforeEach(() => {
0 commit comments