Cap app vitest workers to 2 forks to reduce CPU pressure

The app package used the default fork count (= CPU cores), which
combined with concurrent agent test runs was starving the machine.
This commit is contained in:
Mohamed Boudra
2026-04-12 15:06:10 +07:00
parent ca20945b93
commit 7c18170d6a
+5
View File
@@ -23,6 +23,11 @@ export default defineConfig({
* keeps `process.send` intact so the app tests can boot before hitting the intentional failures.
*/
pool: "forks",
poolOptions: {
forks: {
maxForks: 2,
},
},
server: {
deps: {
fallbackCJS: true,