overleaf/services/web/bin/unit_test
Alasdair Smith 0ca81de78c Merge pull request #1717 from overleaf/as-decaffeinate-backend
Decaffeinate backend

GitOrigin-RevId: 4ca9f94fc809cab6f47cec8254cacaf1bb3806fa
2019-05-29 09:32:21 +00:00

14 lines
253 B
Bash
Executable file

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