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
|
2023-09-26 18:08:37 +02:00
|
|
|
# Running in ci, where resources are limited
|
2024-03-19 23:28:03 +01:00
|
|
|
echo "jest --coverage --maxWorkers=2 --forceExit --bail $@"
|
|
|
|
jest --coverage --maxWorkers=2 --forceExit --bail $@
|
2023-02-22 14:04:16 +01:00
|
|
|
else
|
|
|
|
# --maxWorkers performs better in development
|
2024-03-19 23:28:03 +01:00
|
|
|
echo "jest --coverage --detectOpenHandles $@"
|
|
|
|
jest --coverage --detectOpenHandles $@
|
2023-02-22 14:04:16 +01:00
|
|
|
fi
|