Migrate to jest (#7455)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user