babel/scripts/test.sh
Nicolò Ribaudo 4e7961dcf8 Use /bin/bash instead of /bin/sh in scripts
`/bin/sh` isn't always an alias of `/bin/bash`, so bash-specific syntax broke the scripts.
(like 777a9ae6e4/scripts/_get-test-directories.sh (L7))
2017-09-07 17:19:40 -07:00

15 lines
264 B
Bash
Executable File

#!/bin/bash
set -e
if [ -z "$TEST_GREP" ]; then
TEST_GREP=""
fi
node="node"
if [ "$TEST_DEBUG" ]; then
node="node --inspect --debug-brk"
fi
$node node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --grep "$TEST_GREP"