Skip to content

Commit

Permalink
scripts: run_tests: accept $MOCHA_OPTIONS from the env
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlath committed Jun 15, 2023
1 parent 3ad0a24 commit 4c69aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run_tests
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [ "$1" != "" ]; then
mocha --recursive --extension ts --require ts-node/register "$@"
mocha $MOCHA_OPTIONS --recursive --extension ts --require ts-node/register "$@"
else
mocha --recursive --extension ts --require ts-node/register tests
mocha $MOCHA_OPTIONS --recursive --extension ts --require ts-node/register tests
fi

0 comments on commit 4c69aeb

Please sign in to comment.