Przeglądaj źródła

chore: remove unnecessary imports from vitest (#8562)

丶远方 2 lat temu
rodzic
commit
f32ec17131

+ 1 - 1
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,

+ 1 - 1
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', () => {

+ 0 - 1
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'

+ 1 - 1
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'

+ 1 - 1
scripts/setupVitest.ts

@@ -1,4 +1,4 @@
-import { vi, type SpyInstance } from 'vitest'
+import { type SpyInstance } from 'vitest'
 
 expect.extend({
   toHaveBeenWarned(received: string) {