Skip to content

Commit

Permalink
chore(deps): update devDependency vitest to v3 (#19233)
Browse files Browse the repository at this point in the history
  • Loading branch information
baicie authored Jan 23, 2025
1 parent ce84142 commit 311cdd2
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 67 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"typescript": "~5.7.2",
"typescript-eslint": "^8.19.1",
"vite": "workspace:*",
"vitest": "^2.1.8"
"vitest": "^3.0.2"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged --concurrent false"
Expand Down
4 changes: 2 additions & 2 deletions playground/vitestGlobalSetup.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import fs from 'node:fs/promises'
import path from 'node:path'
import type { GlobalSetupContext } from 'vitest/node'
import type { TestProject } from 'vitest/node'
import type { BrowserServer } from 'playwright-chromium'
import { chromium } from 'playwright-chromium'

let browserServer: BrowserServer | undefined

export async function setup({ provide }: GlobalSetupContext): Promise<void> {
export async function setup({ provide }: TestProject): Promise<void> {
process.env.NODE_ENV = process.env.VITE_TEST_BUILD
? 'production'
: 'development'
Expand Down
Loading

0 comments on commit 311cdd2

Please sign in to comment.