overleaf/services/web/bin/unit_test_module
Simon Detheridge 6f40fd9b99 Merge pull request #1993 from overleaf/ta-module-test-bootstrap
load tests bootstrap when running module-only unit tests

GitOrigin-RevId: 26abca1b2d4da313a7bf83c8618f9255aaac2ca0
2019-07-22 15:31:36 +00:00

9 lines
181 B
Bash
Executable file

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