react/scripts/circleci/test_coverage.sh
2018-03-21 12:03:09 -04:00

12 lines
236 B
Bash
Executable File

#!/bin/bash
set -e
yarn test --coverage --maxWorkers=2
if [ -z "$CI_PULL_REQUEST" ]; then
./node_modules/.bin/coveralls < ./coverage/lcov.info
fi
# TODO: should we also track prod code coverage somehow?
# yarn test-prod --coverage