1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Fix workerIdleMemoryLimit usage

This commit is contained in:
Adria Navarro 2023-07-28 12:53:52 +02:00
parent 51a1d1c183
commit d5533c00d6
2 changed files with 2 additions and 3 deletions

View file

@ -16,7 +16,6 @@ const baseConfig: Config.InitialProjectOptions = {
"@budibase/shared-core": "<rootDir>/../shared-core/src",
"@budibase/types": "<rootDir>/../types/src",
},
workerIdleMemoryLimit: "2GB",
}
// add pro sources if they exist

View file

@ -6,8 +6,8 @@ then
# --runInBand performs better in ci where resources are limited
export NODE_OPTIONS="--max-old-space-size=4096"
node ../../node_modules/jest/bin/jest.js --version
echo "node --expose-gc --no-compilation-cache ../../node_modules/jest/bin/jest.js --runInBand --logHeapUsage --forceExit"
node --expose-gc --no-compilation-cache ../../node_modules/jest/bin/jest.js --runInBand --logHeapUsage --forceExit
echo "jest --coverage --maxWorkers=2 --forceExit"
jest --coverage --maxWorkers=2 --forceExit --workerIdleMemoryLimit=2000MB
else
# --maxWorkers performs better in development
echo "jest --coverage --maxWorkers=2 --forceExit"