Migrate to jest (#7455)

This commit is contained in:
Daniel Tschinder
2018-03-03 10:58:19 +01:00
committed by GitHub
parent 53208d6998
commit 3e95830646
29 changed files with 1861 additions and 1133 deletions

View File

@@ -6,9 +6,15 @@ if [ -z "$TEST_GREP" ]; then
fi
node="node"
jestArgs=""
if [ "$TEST_DEBUG" ]; then
node="node --inspect-brk"
node="node --inspect-brk"
jestArgs="${jestArgs} --runInBand"
fi
$node node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --grep "$TEST_GREP"
if [ -n "$CI" ]; then
jestArgs="${jestArgs} --runInBand --ci"
fi
$node node_modules/.bin/jest $jestArgs "$TEST_GREP"