1
0
Fork 0
mirror of synced 2024-08-09 23:28:01 +12:00
budibase/packages/server/scripts/test.sh
Rory Powell 9d6d781244 Use --runInBand in CI only (#9771)
* Use  in CI only

* Use scripts instead of ternary to pick up correct bash syntax
2023-02-22 13:04:16 +00:00

12 lines
295 B
Bash

#!/bin/bash
if [[ -n $CI ]]
then
# --runInBand performs better in ci where resources are limited
echo "jest --coverage --runInBand"
jest --coverage --runInBand
else
# --maxWorkers performs better in development
echo "jest --coverage --maxWorkers=2"
jest --coverage --maxWorkers=2
fi