]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove unnecessary imports from vitest (#8562)
author丶远方 <yangpanteng@gmail.com>
Thu, 26 Oct 2023 08:34:14 +0000 (16:34 +0800)
committerGitHub <noreply@github.com>
Thu, 26 Oct 2023 08:34:14 +0000 (16:34 +0800)
packages/runtime-core/__tests__/apiOptions.spec.ts
packages/runtime-dom/__tests__/customizedBuiltIn.spec.ts
packages/vue-compat/__tests__/global.spec.ts
packages/vue-compat/__tests__/instance.spec.ts
scripts/setupVitest.ts

index ca712e0d3ac9425e1c5c493bc9f1e6bd6d75b3ff..94f9db1b028dd1ce045c1c40325b82cc587139f3 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * @vitest-environment jsdom
  */
-import { vi, type Mock } from 'vitest'
+import { type Mock } from 'vitest'
 import {
   h,
   nodeOps,
index 9d2135a407053b01e0f818faf771d3ae895a5333..89ccf02bc02174cf155172b4d6339c3d87f29a3f 100644 (file)
@@ -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', () => {
index d189d65f67b72861a037d224f6f4f541676ec547..ffbea39a354d2eff52dae2b9ff22543c758ee29c 100644 (file)
@@ -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'
index abcd3d1fab034e8565d91b66bd38339f306bcad4..009dc7aa6f5eeff01958a10ceb67fbd2302d1a4c 100644 (file)
@@ -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'
index c555b0fa5e8ef7a6c14e2ad7be69bd4cd4d9e09b..cd1e672fd2840260577a71eb938b1563a3354ce8 100644 (file)
@@ -1,4 +1,4 @@
-import { vi, type SpyInstance } from 'vitest'
+import { type SpyInstance } from 'vitest'
 
 expect.extend({
   toHaveBeenWarned(received: string) {