mirror of https://github.com/vuejs/core.git
chore(test): replace deprecated `SpyInstance` import with the latest `MockInstance` (#9889)
This commit is contained in:
parent
a03514e994
commit
1b522cae07
|
@ -1,8 +1,8 @@
|
|||
import { type SpyInstance } from 'vitest'
|
||||
import { type MockInstance } from 'vitest'
|
||||
import { render, h } from '@vue/runtime-dom'
|
||||
|
||||
describe('customized built-in elements support', () => {
|
||||
let createElement: SpyInstance
|
||||
let createElement: MockInstance
|
||||
afterEach(() => {
|
||||
createElement.mockRestore()
|
||||
})
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { type SpyInstance } from 'vitest'
|
||||
import { type MockInstance } from 'vitest'
|
||||
|
||||
expect.extend({
|
||||
toHaveBeenWarned(received: string) {
|
||||
|
@ -65,7 +65,7 @@ expect.extend({
|
|||
}
|
||||
})
|
||||
|
||||
let warn: SpyInstance
|
||||
let warn: MockInstance
|
||||
const asserted: Set<string> = new Set()
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
Loading…
Reference in New Issue