From ff284f77fb8cef69699d2d67f94af71376c61ff5 Mon Sep 17 00:00:00 2001 From: Brian Richter Date: Fri, 16 Oct 2026 13:52:00 -0700 Subject: [PATCH] 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 --- dashboard/vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dashboard/vite.config.ts b/dashboard/vite.config.ts index 9f9a2dff1..6a087ab81 100644 --- a/dashboard/vite.config.ts +++ b/dashboard/vite.config.ts @@ -1,3 +1,4 @@ +/// 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,