fix(agent-team-web): scope vitest to src/ so it skips the Playwright e2e specs

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).
This commit is contained in:
Adam Moussa 2026-06-24 19:53:18 -04:00
parent 8530074551
commit b16fbd1aaf

View file

@ -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}"],
},
});