Skip to content

Commit 1b522ca

Browse files
chore(test): replace deprecated SpyInstance import with the latest MockInstance (#9889)
1 parent a03514e commit 1b522ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { type SpyInstance } from 'vitest'
1+
import { type MockInstance } from 'vitest'
22
import { render, h } from '@vue/runtime-dom'
33

44
describe('customized built-in elements support', () => {
5-
let createElement: SpyInstance
5+
let createElement: MockInstance
66
afterEach(() => {
77
createElement.mockRestore()
88
})

Diff for: scripts/setupVitest.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type SpyInstance } from 'vitest'
1+
import { type MockInstance } from 'vitest'
22

33
expect.extend({
44
toHaveBeenWarned(received: string) {
@@ -65,7 +65,7 @@ expect.extend({
6565
}
6666
})
6767

68-
let warn: SpyInstance
68+
let warn: MockInstance
6969
const asserted: Set<string> = new Set()
7070

7171
beforeEach(() => {

0 commit comments

Comments
 (0)