From b16fbd1aaf804b200e3176ff0292fdb678a22f0e Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Wed, 24 Jun 2026 19:53:18 -0400 Subject: [PATCH] fix(agent-team-web): scope vitest to src/ so it skips the Playwright e2e specs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ci-web's `test` (vitest run) globbed e2e/dashboard.smoke.spec.ts, which imports @playwright/test (the Playwright runner, not vitest) and fails to load — "1 test file failed" while the 44 unit tests passed. Restrict vitest's include to src/**; Playwright keeps its own testDir (./e2e). --- agent-team/web/vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent-team/web/vite.config.ts b/agent-team/web/vite.config.ts index cbc3927..f792417 100644 --- a/agent-team/web/vite.config.ts +++ b/agent-team/web/vite.config.ts @@ -62,5 +62,9 @@ export default defineConfig({ environment: "jsdom", setupFiles: ["./src/test/setup.ts"], css: false, + // Unit tests live under src/. Scope vitest there so it does NOT pick up the + // Playwright e2e specs in e2e/ (they import @playwright/test — the Playwright + // runner, not vitest — and fail to load under `vitest run`). + include: ["src/**/*.{test,spec}.{ts,tsx}"], }, });