]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(test): replace deprecated `SpyInstance` import with the latest `MockInstance...
author丶远方 <yangpanteng@gmail.com>
Fri, 22 Dec 2023 13:55:43 +0000 (21:55 +0800)
committerGitHub <noreply@github.com>
Fri, 22 Dec 2023 13:55:43 +0000 (21:55 +0800)
packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts
scripts/setupVitest.ts

index 89ccf02bc02174cf155172b4d6339c3d87f29a3f..09542a3555d32e78f074ef029fbf150556725e2e 100644 (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()
   })
index cd1e672fd2840260577a71eb938b1563a3354ce8..781e713e4c14ba5f79b91dbbb701e03a6322f32b 100644 (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(() => {