Skip to content

Commit 311cdd2

Browse files
authored
chore(deps): update devDependency vitest to v3 (#19233)
1 parent ce84142 commit 311cdd2

File tree

3 files changed

+97
-67
lines changed

3 files changed

+97
-67
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"typescript": "~5.7.2",
7777
"typescript-eslint": "^8.19.1",
7878
"vite": "workspace:*",
79-
"vitest": "^2.1.8"
79+
"vitest": "^3.0.2"
8080
},
8181
"simple-git-hooks": {
8282
"pre-commit": "pnpm exec lint-staged --concurrent false"

playground/vitestGlobalSetup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import fs from 'node:fs/promises'
22
import path from 'node:path'
3-
import type { GlobalSetupContext } from 'vitest/node'
3+
import type { TestProject } from 'vitest/node'
44
import type { BrowserServer } from 'playwright-chromium'
55
import { chromium } from 'playwright-chromium'
66

77
let browserServer: BrowserServer | undefined
88

9-
export async function setup({ provide }: GlobalSetupContext): Promise<void> {
9+
export async function setup({ provide }: TestProject): Promise<void> {
1010
process.env.NODE_ENV = process.env.VITE_TEST_BUILD
1111
? 'production'
1212
: 'development'

0 commit comments

Comments
 (0)