overleaf/services/web/bin/unit_test

15 lines
210 B
Text
Raw Normal View History

2017-11-23 16:52:43 +00:00
#!/bin/bash
set -e;
2018-02-27 12:25:42 +00:00
MOCHA="node_modules/.bin/mocha --recursive --reporter spec"
2017-11-23 16:52:43 +00:00
$MOCHA "$@" test/unit/js
for dir in modules/*;
do
if [ -d $dir/test/unit/js ]; then
$MOCHA "$@" $dir/test/unit/js
fi
done