Use jest workers on travis-ci and circleCI (#7510)

This commit is contained in:
Daniel Tschinder 2018-03-08 22:15:54 +01:00 committed by GitHub
parent 1c9b0ff49e
commit 24a07fc790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ set -e
jestArgs="--coverage" jestArgs="--coverage"
if [ -n "$CI" ]; then if [ -n "$CI" ]; then
jestArgs="${jestArgs} --runInBand --ci" jestArgs="${jestArgs} --maxWorkers=4 --ci"
fi fi
node_modules/.bin/jest $jestArgs node_modules/.bin/jest $jestArgs

View File

@ -14,7 +14,7 @@ if [ "$TEST_DEBUG" ]; then
fi fi
if [ -n "$CI" ]; then if [ -n "$CI" ]; then
jestArgs="${jestArgs} --runInBand --ci" jestArgs="${jestArgs} --maxWorkers=4 --ci"
fi fi
$node node_modules/.bin/jest $jestArgs "$TEST_GREP" $node node_modules/.bin/jest $jestArgs "$TEST_GREP"