react/scripts/circleci/test_coverage.sh
2018-01-08 02:27:24 +00:00

12 lines
238 B
Bash
Executable File

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