Skip to content

test: replace deprecated SpyInstance with MockInstance #9889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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