chore: remove unnecessary imports from vitest (#8562)

This commit is contained in:
丶远方 2023-10-26 16:34:14 +08:00 committed by GitHub
parent 6d7360d514
commit f32ec17131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/**
* @vitest-environment jsdom
*/
import { vi, type Mock } from 'vitest'
import { type Mock } from 'vitest'
import {
h,
nodeOps,

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

View 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'

View 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'

View File

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