You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
303 B
Bash
14 lines
303 B
Bash
#!/bin/bash
|
|
# Runs the mocha tests
|
|
|
|
if [ $BASH_ARGV ]; then
|
|
FILES=$(find src -name "*$BASH_ARGV*.test.js")
|
|
echo Running test for $FILES...
|
|
else
|
|
echo Running all tests...
|
|
FILES=$(find src -name "*.test.js")
|
|
fi
|
|
|
|
|
|
mocha --reporter spec --compilers js:babel-register $FILES --require babel-polyfill
|