fix: limit vitest to one worker to avoid 100% CPU
This commit is contained in:
1 parent
af67a28639
commit
4768b2b406
1 file changed
+2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user