babel/scripts/test.sh

15 lines
256 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-brk"
fi
$node node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --grep "$TEST_GREP"