diff --git a/packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts b/packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts index 89ccf02bc02..09542a3555d 100644 --- a/packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts +++ b/packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts @@ -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() }) diff --git a/scripts/setupVitest.ts b/scripts/setupVitest.ts index cd1e672fd28..781e713e4c1 100644 --- a/scripts/setupVitest.ts +++ b/scripts/setupVitest.ts @@ -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 = new Set() beforeEach(() => {