Fix workerIdleMemoryLimit usage
This commit is contained in:
parent
51a1d1c183
commit
d5533c00d6
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue