Skip to content

Commit 4b70249

Browse files
authored
chore: remove vitest global options (#9620)
1 parent 62a3ee1 commit 4b70249

File tree

9 files changed

+7
-5
lines changed

9 files changed

+7
-5
lines changed

playground/ssr-vue/__tests__/ssr-vue.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { resolve } from 'node:path'
22
import { fileURLToPath } from 'node:url'
33
import fetch from 'node-fetch'
4+
import { expect, test, vi } from 'vitest'
45
import { port } from './serve'
56
import {
67
browserLogs,

playground/test-utils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// test utils used in e2e tests for playgrounds.
22
// `import { getColor } from '~utils'`
33

4-
// TODO: explicitly import APIs and remove this
5-
/// <reference types="vitest/globals"/>
6-
74
import fs from 'node:fs'
85
import path from 'node:path'
96
import colors from 'css-color-names'

playground/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"skipLibCheck": true,
1414
"noUnusedLocals": true,
1515
"jsx": "preserve",
16-
"types": ["vite/client", "vitest/globals", "node"],
16+
"types": ["vite/client", "node"],
1717
"paths": {
1818
"~utils": ["./test-utils.ts"]
1919
}

playground/vue-jsx/__tests__/vue-jsx.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, test } from 'vitest'
12
import { editFile, isServe, page, untilUpdated } from '~utils'
23

34
test('should render', async () => {

playground/vue-lib/__tests__/vue-lib.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import path from 'node:path'
22
import { build } from 'vite'
3+
import { describe, expect, test } from 'vitest'
34
import type { OutputChunk, RollupOutput } from 'rollup'
45

56
describe('vue component library', () => {

playground/vue-server-origin/__tests__/vue-server-origin.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { expect, test } from 'vitest'
12
import { isBuild, page } from '~utils'
23

34
test('should render', async () => {

playground/vue-sourcemap/__tests__/vue-sourcemap.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { URL } from 'node:url'
2+
import { describe, expect, test } from 'vitest'
23
import {
34
extractSourcemap,
45
formatSourcemapForSnapshot,

playground/vue/__tests__/vue.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, test } from 'vitest'
12
import {
23
browserLogs,
34
editFile,

vitest.config.e2e.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export default defineConfig({
1515
globalSetup: ['./playground/vitestGlobalSetup.ts'],
1616
testTimeout: timeout,
1717
hookTimeout: timeout,
18-
globals: true,
1918
reporters: 'dot',
2019
onConsoleLog(log) {
2120
if (log.match(/experimental|jit engine|emitted file|tailwind/i))

0 commit comments

Comments
 (0)