Skip to content

Commit

Permalink
chore(test): replace deprecated SpyInstance import with the latest …
Browse files Browse the repository at this point in the history
…`MockInstance` (#9889)
  • Loading branch information
Alfred-Skyblue committed Dec 22, 2023
1 parent a03514e commit 1b522ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts
Original file line number Diff line number Diff line change
@@ -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()
})
Expand Down
4 changes: 2 additions & 2 deletions scripts/setupVitest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type SpyInstance } from 'vitest'
import { type MockInstance } from 'vitest'

expect.extend({
toHaveBeenWarned(received: string) {
Expand Down Expand Up @@ -65,7 +65,7 @@ expect.extend({
}
})

let warn: SpyInstance
let warn: MockInstance
const asserted: Set<string> = new Set()

beforeEach(() => {
Expand Down

0 comments on commit 1b522ca

Please sign in to comment.