chore: run jest in two worker processes (closes #426)
check / check (push) Failing after 2s
e2e / e2e-chrome (push) Failing after 2s
e2e / e2e-firefox (push) Failing after 2s

The test and test:verbose scripts ran jest with one worker per CPU core,
about 47 processes and 7-8 GiB per run on the shared 48-core build host.
They now pass --maxWorkers=2. One process took the suite past the
30-second cap in script/test, so two it is; the cap is unchanged.
make check, the pre-commit hook and script/cibuild all reach jest
through these scripts. The suite timings quoted in the script/test and
Dockerfile comments are updated to match.

Model: opus-5-5
This commit is contained in:
2026-10-04 11:08:41 +00:00
parent 1247c24c4d
commit 70d06dcb13
4 changed files with 22 additions and 10 deletions
+2 -2
View File
@@ -6,8 +6,8 @@
"license": "GPL-3.0",
"private": true,
"scripts": {
"test": "jest --forceExit",
"test:verbose": "jest --forceExit --verbose",
"test": "jest --forceExit --maxWorkers=2",
"test:verbose": "jest --forceExit --maxWorkers=2 --verbose",
"build": "node build.js",
"lint": "eslint . && prettier --check .",
"fmt": "prettier --write .",