diff --git a/vitest.config.ts b/vitest.config.ts index 9402ccf3..582c5aa5 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -12,6 +12,13 @@ export default defineConfig({ environment: "node", globals: true, passWithNoTests: true, + // 15s (up from the 5s default). Full-suite parallel runs occasionally + // starve single tests on slower hosts — most notably the CPU-heavy + // eslint rule tests and React Testing Library mounts. Keeps per-test + // timeouts long enough to absorb contention while still catching + // genuine hangs. Individual tests can still override via `it(..., fn, ms)`. + testTimeout: 15000, + hookTimeout: 15000, include: ["src/**/*.test.ts", "src/**/*.test.tsx", "tests/**/*.test.ts", "tests/**/*.test.tsx"], coverage: { provider: "v8",