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:
parent
8530074551
commit
b16fbd1aaf
1 changed files with 4 additions and 0 deletions
|
|
@ -62,5 +62,9 @@ export default defineConfig({
|
||||||
environment: "jsdom",
|
environment: "jsdom",
|
||||||
setupFiles: ["./src/test/setup.ts"],
|
setupFiles: ["./src/test/setup.ts"],
|
||||||
css: false,
|
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}"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Reference in a new issue