From 4768b2b406aa85ca634d4a1bc857b6c7cfd1d4ce Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 23 Oct 2026 14:21:23 +0200 Subject: [PATCH] fix: limit vitest to one worker to avoid 100% CPU --- vitest.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 4817822a..3bd83923 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -27,6 +27,8 @@ export default defineConfig({ DATABASE_URL: "mysql://root:root@localhost:3306/test", }, testTimeout: 10000, + maxWorkers: 1, + fileParallelism: false, exclude: ["integration/**", "e2e/**", "node_modules/**", ".next/**"], coverage: { // Off unless asked for (`pnpm test:coverage` passes