diff --git a/vitest.config.ts b/vitest.config.ts index 88ecb02e0..160dc4ba2 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -166,8 +166,13 @@ export default defineConfig({ ], // ── Timeouts ────────────────────────────────────────────────────────────── - testTimeout: 30_000, - hookTimeout: 30_000, + // Cold vitest+esbuild module-graph import takes 16-25s on this repo + // (dynamic imports of captures.js and friends). 30s tests-timeout was + // racing the import phase, producing spurious 30s failures across + // dev-engine, ensure-db-open, workflow-mcp, sf-tools, verification-gate, + // etc. 60s gives the import time to settle without losing real-bug signal. + testTimeout: 60_000, + hookTimeout: 60_000, // ── Pool: forks = one Node process per test file (best for Node.js tests) ─ pool: "forks",