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
+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'
}]