chore(test): replace deprecated `SpyInstance` import with the latest `MockInstance` (#9889)

This commit is contained in:
丶远方 2023-12-22 21:55:43 +08:00 committed by GitHub
parent a03514e994
commit 1b522cae07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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()
})

View File

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