1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-02-18 20:21:59 +00:00
overleaf/services/web/bin/unit_test
2017-11-27 17:10:58 +00:00

14 lines
210 B
Bash
Executable file

#!/bin/bash
set -e;
MOCHA="node_modules/.bin/mocha --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