fix: limit vitest to one worker to avoid 100% CPU

This commit is contained in:
openhands committed 2026-10-23 14:21:23 +02:00
1 parent af67a28639
commit 4768b2b406
1 file changed
+2
+2
View File
@@ -27,6 +27,8 @@ export default defineConfig({
DATABASE_URL: "mysql://root:root@localhost:3306/test", DATABASE_URL: "mysql://root:root@localhost:3306/test",
}, },
testTimeout: 10000, testTimeout: 10000,
maxWorkers: 1,
fileParallelism: false,
exclude: ["integration/**", "e2e/**", "node_modules/**", ".next/**"], exclude: ["integration/**", "e2e/**", "node_modules/**", ".next/**"],
coverage: { coverage: {
// Off unless asked for (`pnpm test:coverage` passes // Off unless asked for (`pnpm test:coverage` passes