overleaf/services/web/bin/unit_test_module
Simon Detheridge deb9e656a9 Merge pull request #1801 from overleaf/ew-module-unit-test
add ability to unit test a single module

GitOrigin-RevId: 584708066dea3c8d6afa1483953bbae252b48fa7
2019-05-23 13:25:39 +00:00

9 lines
147 B
Bash
Executable file

#!/bin/bash
set -e;
MOCHA="node_modules/.bin/mocha --exit --recursive --reporter spec"
MODULE=$1
shift
$MOCHA "$@" modules/$MODULE/test/unit/js