qmd/vitest.config.ts
Tobi Lütke cfd640ed34
fix(test): resolve LLM test timeouts by disabling file parallelism
Parallel test files each cold-load their own LLM model, competing for
CPU and causing timeouts even at 120s. Sequential execution eliminates
contention — tests that timed out at 30s now complete in 1-15s.

Made-with: Cursor
2026-04-11 01:21:22 +00:00

10 lines
184 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
testTimeout: 30000,
fileParallelism: false,
include: ["test/**/*.test.ts"],
},
});