chore(vitest): bump testTimeout 30s→60s to absorb cold-import latency

Cold vitest+esbuild module-graph imports take 16-25s on this repo (dynamic
imports of captures.js and friends). The 30s testTimeout was racing the
import phase, producing 30s spurious failures across dev-engine-wrapper,
ensure-db-open, workflow-mcp, sf-tools, verification-gate, hook-key-parsing,
visualizer-overlay, and others — all timing out at exactly ~30s with no
real assertion failure.

Also bumps hookTimeout symmetrically.

Re-running the affected files: 147/147 pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mikael Hugo 2026-05-02 11:53:31 +02:00
parent 44204e0424
commit 3915dfda3a

View file

@ -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",