overleaf/services/web/bin/unit_test

15 lines
217 B
Text
Raw Normal View History

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