2023-02-22 14:04:16 +01:00
|
|
|
#!/bin/bash
|
2023-03-31 11:32:13 +02:00
|
|
|
set -e
|
2023-02-22 14:04:16 +01:00
|
|
|
|
|
|
|
if [[ -n $CI ]]
|
|
|
|
then
|
|
|
|
# --runInBand performs better in ci where resources are limited
|
2023-03-31 11:32:13 +02:00
|
|
|
export NODE_OPTIONS="--max-old-space-size=4096"
|
2023-07-27 16:47:09 +02:00
|
|
|
node ../../node_modules/jest/bin/jest.js --version
|
2023-08-07 13:32:20 +02:00
|
|
|
echo "jest --coverage --maxWorkers=2 --forceExit --workerIdleMemoryLimit=2000MB --bail"
|
|
|
|
jest --coverage --maxWorkers=2 --forceExit --workerIdleMemoryLimit=2000MB --bail
|
2023-02-22 14:04:16 +01:00
|
|
|
else
|
|
|
|
# --maxWorkers performs better in development
|
2023-03-31 11:32:13 +02:00
|
|
|
echo "jest --coverage --maxWorkers=2 --forceExit"
|
|
|
|
jest --coverage --maxWorkers=2 --forceExit
|
2023-02-22 14:04:16 +01:00
|
|
|
fi
|