diff --git a/packages/runtime-core/__tests__/apiOptions.spec.ts b/packages/runtime-core/__tests__/apiOptions.spec.ts index ca712e0d3ac..94f9db1b028 100644 --- a/packages/runtime-core/__tests__/apiOptions.spec.ts +++ b/packages/runtime-core/__tests__/apiOptions.spec.ts @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { vi, type Mock } from 'vitest' +import { type Mock } from 'vitest' import { h, nodeOps, diff --git a/packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts b/packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts index 9d2135a4070..89ccf02bc02 100644 --- a/packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts +++ b/packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts @@ -1,4 +1,4 @@ -import { vi, SpyInstance } from 'vitest' +import { type SpyInstance } from 'vitest' import { render, h } from '@vue/runtime-dom' describe('customized built-in elements support', () => { diff --git a/packages/vue-compat/__tests__/global.spec.ts b/packages/vue-compat/__tests__/global.spec.ts index d189d65f67b..ffbea39a354 100644 --- a/packages/vue-compat/__tests__/global.spec.ts +++ b/packages/vue-compat/__tests__/global.spec.ts @@ -1,4 +1,3 @@ -import { expect, vi } from 'vitest' import Vue from '@vue/compat' import { effect, isReactive } from '@vue/reactivity' import { h, nextTick } from '@vue/runtime-core' diff --git a/packages/vue-compat/__tests__/instance.spec.ts b/packages/vue-compat/__tests__/instance.spec.ts index abcd3d1fab0..009dc7aa6f5 100644 --- a/packages/vue-compat/__tests__/instance.spec.ts +++ b/packages/vue-compat/__tests__/instance.spec.ts @@ -1,4 +1,4 @@ -import { vi, Mock } from 'vitest' +import { type Mock } from 'vitest' import Vue from '@vue/compat' import { Slots } from '../../runtime-core/src/componentSlots' import { Text } from '../../runtime-core/src/vnode' diff --git a/scripts/setupVitest.ts b/scripts/setupVitest.ts index c555b0fa5e8..cd1e672fd28 100644 --- a/scripts/setupVitest.ts +++ b/scripts/setupVitest.ts @@ -1,4 +1,4 @@ -import { vi, type SpyInstance } from 'vitest' +import { type SpyInstance } from 'vitest' expect.extend({ toHaveBeenWarned(received: string) {