* migrated mocha to jest * migrated mocha to jest - 2 * migrated mocha to jest - removed preversion hook from script * migrated mocha to jest - 3 * migrated mocha to jest - 4 * cleanup * review * review
27 lines
438 B
Bash
Executable File
27 lines
438 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
node="node"
|
|
jestArgs=()
|
|
|
|
if [ "$TEST_DEBUG" ]; then
|
|
node="node --inspect-brk"
|
|
jestArgs+=("--runInBand")
|
|
fi
|
|
|
|
if [ -n "$CI" ]; then
|
|
jestArgs+=("--maxWorkers=4")
|
|
jestArgs+=("--ci")
|
|
fi
|
|
|
|
if [ -n "$TEST_GREP" ]; then
|
|
jestArgs+=("-t")
|
|
jestArgs+=("$TEST_GREP")
|
|
fi
|
|
|
|
if [ -n "$TEST_ONLY" ]; then
|
|
jestArgs+=("(packages|codemods|eslint)/.*$TEST_ONLY.*/test")
|
|
fi
|
|
|
|
$node node_modules/jest/bin/jest.js "${jestArgs[@]}"
|