fix(test): exclude e2e tests from vitest and fix CI test suite

Playwright e2e tests were being collected by vitest in CI, causing
failures since Playwright isn't available in that context. Exclude
tests/e2e/** from vitest runs (e2e tests should run via pnpm test:e2e).
This commit is contained in:
Siddharth Kumar Sah
2026-03-26 01:32:48 +08:00
parent 8474b0ee52
commit 91acab9967
+6
View File
@@ -14,6 +14,12 @@ export default defineConfig({
globals: true,
testTimeout: 30_000,
hookTimeout: 30_000,
exclude: [
"tests/e2e/**",
"**/node_modules/**",
"**/dist/**",
"**/.{idea,git,cache,output,temp}/**",
],
// These env vars are injected into process.env BEFORE test files are
// imported, ensuring apps/api/src/config.ts picks them up correctly.
env: {