babel/scripts/test-cov.sh
Huáng Jùnliàng 2b472912e4
Tune makefile scripts (#10781)
* chore: replace node by `yarn node`

* chore: fix tsc command

* chore: use `yarn` to wrap node

* chore: supress yarn run output

* chore: disable silent mode for builtin yarn command
2019-12-04 22:28:25 -05:00

12 lines
179 B
Bash
Executable File

#!/bin/bash
set -e
node="yarn --silent node"
jestArgs="--coverage"
if [ -n "$CI" ]; then
jestArgs="${jestArgs} --maxWorkers=4 --ci"
fi
$node node_modules/.bin/jest $jestArgs