2023-02-22 14:04:16 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ -n $CI ]]
|
|
|
|
then
|
|
|
|
# --runInBand performs better in ci where resources are limited
|
2023-03-28 00:47:30 +02:00
|
|
|
echo "jest --coverage --runInBand --forceExit"
|
|
|
|
jest --coverage --runInBand --forceExit
|
2023-02-22 14:04:16 +01:00
|
|
|
else
|
|
|
|
# --maxWorkers performs better in development
|
|
|
|
echo "jest --coverage --maxWorkers=2"
|
|
|
|
jest --coverage --maxWorkers=2
|
2023-03-28 00:47:30 +02:00
|
|
|
fi
|