Skip to content

Commit

Permalink
chore: remove unnecessary imports from vitest (vuejs#8562)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue authored Oct 26, 2023
1 parent 6d7360d commit f32ec17
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/runtime-core/__tests__/apiOptions.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @vitest-environment jsdom
*/
import { vi, type Mock } from 'vitest'
import { type Mock } from 'vitest'
import {
h,
nodeOps,
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/vue-compat/__tests__/global.spec.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-compat/__tests__/instance.spec.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion scripts/setupVitest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vi, type SpyInstance } from 'vitest'
import { type SpyInstance } from 'vitest'

expect.extend({
toHaveBeenWarned(received: string) {
Expand Down

0 comments on commit f32ec17

Please sign in to comment.