build(web): upgrade Vitest 3→4 (browser-playwright provider) (#46)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 23:03:21 +02:00
parent 6ed137f49e
commit f3881e8c7c
3 changed files with 181 additions and 345 deletions
+3 -3
View File
@@ -51,8 +51,8 @@
"@types/react": "^19.1.5",
"@types/react-dom": "^19.1.3",
"@vitejs/plugin-react": "^4.5.2",
"@vitest/browser": "3.2.6",
"@vitest/coverage-v8": "3.2.6",
"@vitest/browser-playwright": "^4.1.8",
"@vitest/coverage-v8": "4.1.8",
"eslint": "^10.4.1",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
@@ -69,7 +69,7 @@
"typescript": "~5.8.3",
"typescript-eslint": "^8.60.1",
"vite": "^6.3.5",
"vitest": "^3.2.2"
"vitest": "^4.1.8"
},
"msw": {
"workerDirectory": [
+176 -341
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -5,6 +5,7 @@ import path from "node:path";
import { defineConfig } from "vite";
import { fileURLToPath } from 'node:url';
import { storybookTest } from '@storybook/addon-vitest/vitest-plugin';
import { playwright } from '@vitest/browser-playwright';
const dirname = typeof __dirname !== 'undefined' ? __dirname : path.dirname(fileURLToPath(import.meta.url));
// More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
@@ -48,7 +49,7 @@ export default defineConfig({
browser: {
enabled: true,
headless: true,
provider: 'playwright',
provider: playwright(),
instances: [{
browser: 'chromium'
}]