Skip to content

Commit

Permalink
Make sure that default NODE_ENV is test for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Apr 23, 2020
1 parent ca730e7 commit b3e2fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/index.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
export NODE_ENV=${NODE_ENV:-test}
OVERALL_RESULT=0
for test in ./test/test_*; do
echo ""
echo "Running $test"
"$test"
if [ $? -ne 0 ]; then
if [ $? -ne 0 ]; then
echo "$test FAIL"
OVERALL_RESULT=1
else
Expand Down

0 comments on commit b3e2fa6

Please sign in to comment.