mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-18 21:28:22 +00:00
14 lines
303 B
Bash
Executable File
14 lines
303 B
Bash
Executable File
#!/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
|