fix(dashboard): exclude Playwright specs from Vitest

npm test (vitest run) collected tests/a11y.spec.ts, a Playwright spec,
and failed. Exclude tests/** from Vitest and pass when no unit tests
exist; Playwright specs still run via npm run test:e2e / test:a11y.

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
Brian Richterandclaude-flow committed 2026-10-16 17:45:38 -07:00
1 parent a1ca023ee8
commit ff284f77fb
1 file changed
+6
+6
View File
@@ -1,3 +1,4 @@
/// <reference types="vitest/config" />
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
@@ -66,6 +67,11 @@ export default defineConfig({
},
},
},
test: {
// tests/ holds Playwright specs (run via `npm run test:e2e`), not Vitest.
exclude: ['**/node_modules/**', '**/dist/**', 'tests/**'],
passWithNoTests: true,
},
server: {
port: 5173,
strictPort: true,