overleaf/services/web/bin/unit_test

15 lines
253 B
Text
Raw Normal View History

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