Skip to content

Commit f32ec17

Browse files
chore: remove unnecessary imports from vitest (#8562)
1 parent 6d7360d commit f32ec17

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

packages/runtime-core/__tests__/apiOptions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @vitest-environment jsdom
33
*/
4-
import { vi, type Mock } from 'vitest'
4+
import { type Mock } from 'vitest'
55
import {
66
h,
77
nodeOps,

packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { vi, SpyInstance } from 'vitest'
1+
import { type SpyInstance } from 'vitest'
22
import { render, h } from '@vue/runtime-dom'
33

44
describe('customized built-in elements support', () => {

packages/vue-compat/__tests__/global.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { expect, vi } from 'vitest'
21
import Vue from '@vue/compat'
32
import { effect, isReactive } from '@vue/reactivity'
43
import { h, nextTick } from '@vue/runtime-core'

packages/vue-compat/__tests__/instance.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { vi, Mock } from 'vitest'
1+
import { type Mock } from 'vitest'
22
import Vue from '@vue/compat'
33
import { Slots } from '../../runtime-core/src/componentSlots'
44
import { Text } from '../../runtime-core/src/vnode'

scripts/setupVitest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { vi, type SpyInstance } from 'vitest'
1+
import { type SpyInstance } from 'vitest'
22

33
expect.extend({
44
toHaveBeenWarned(received: string) {

0 commit comments

Comments
 (0)