UNPKG

314 Bapplication/x-shView Raw
1#!/bin/bash
2
3: ${TIMEOUT:=50000}
4: ${REPORTER:="spec"}
5: ${BAIL:=1}
6
7if [ $BAIL -eq 1 ]; then
8 BAIL_OPT="--bail"
9else
10 BAIL_OPT=""
11fi
12
13./node_modules/.bin/mocha \
14 $BAIL_OPT \
15 --timeout $TIMEOUT \
16 --require=./tests/node.setup.js \
17 --reporter=$REPORTER \
18 --grep=$GREP \
19 tests/test.*.js