babel/scripts/test.sh
Sebastian McKenzie 1948946a4d add scripts
2015-07-12 12:51:20 +01:00

16 lines
248 B
Bash
Executable File

#!/bin/sh
set -e
for f in packages/*; do
if [ -n "$TEST_ONLY" ] && [ `basename $f` != "$TEST_ONLY" ]; then
continue
fi
if [ -d "$f/test" ]; then
echo $f
cd $f
node ../../node_modules/mocha/bin/_mocha
cd ../../
fi
done