On a starved CPU, jest force-stopped worker processes that could not exit within the 500 ms it allows, and script/lib/jest.js failed the run although every test passed. No test leaks a handle; exit time grows with what a worker holds, 380 to 970 MB at the end of the run. workerIdleMemoryLimit in package.json replaces a worker whose heap is over 200 MB after a test file with a fresh one. tests/jestRunner.test.js runs script/lib/jest.js on a fixture that leaves an interval running and expects the force-stop to fail the run. Model: opus-5-5
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "autistmask",
|
|
"version": "0.1.0",
|
|
"description": "Minimal Ethereum wallet browser extension for Chrome and Firefox",
|
|
"author": "sneak <sneak@sneak.berlin>",
|
|
"license": "GPL-3.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"test": "node script/lib/jest.js --maxWorkers=3",
|
|
"test:verbose": "node script/lib/jest.js --maxWorkers=3 --verbose",
|
|
"build": "node build.js",
|
|
"lint": "eslint . && prettier --check .",
|
|
"fmt": "prettier --write .",
|
|
"fmt-check": "prettier --check ."
|
|
},
|
|
"jest": {
|
|
"setupFiles": [
|
|
"<rootDir>/tests/support/navigatorLocks.js"
|
|
],
|
|
"workerIdleMemoryLimit": "200MB"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "10.0.1",
|
|
"@tailwindcss/cli": "4.3.1",
|
|
"esbuild": "^0.27.3",
|
|
"eslint": "10.8.1",
|
|
"globals": "17.11.0",
|
|
"jest": "^30.2.0",
|
|
"playwright-core": "1.56.0",
|
|
"prettier": "^3.8.1",
|
|
"tailwindcss": "4.3.1"
|
|
},
|
|
"dependencies": {
|
|
"ethereum-blockies-base64": "^1.0.2",
|
|
"ethers": "^6.16.0",
|
|
"libsodium-wrappers-sumo": "^0.8.2",
|
|
"qrcode": "^1.5.4"
|
|
}
|
|
}
|