2023-02-23 02:04:16 +13:00
|
|
|
#!/bin/bash
|
2023-03-31 22:32:13 +13:00
|
|
|
set -e
|
2023-02-23 02:04:16 +13:00
|
|
|
|
|
|
|
if [[ -n $CI ]]
|
|
|
|
then
|
|
|
|
# --runInBand performs better in ci where resources are limited
|
2023-05-23 03:02:21 +12:00
|
|
|
echo "jest --coverage --forceExit"
|
|
|
|
jest --coverage --forceExit
|
2023-02-23 02:04:16 +13:00
|
|
|
else
|
|
|
|
# --maxWorkers performs better in development
|
2023-03-31 22:32:13 +13:00
|
|
|
echo "jest --coverage --maxWorkers=2 --forceExit"
|
|
|
|
jest --coverage --maxWorkers=2 --forceExit
|
2023-02-23 02:04:16 +13:00
|
|
|
fi
|