overleaf/services/web/bin/unit_test
2018-02-27 15:03:21 +00:00

14 lines
217 B
Bash
Executable file

#!/bin/bash
set -e;
MOCHA="node_modules/.bin/mocha --exit --recursive --reporter spec"
$MOCHA "$@" test/unit/js
for dir in modules/*;
do
if [ -d $dir/test/unit/js ]; then
$MOCHA "$@" $dir/test/unit/js
fi
done