mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user