Skip to content

Commit

Permalink
use bash test harness
Browse files Browse the repository at this point in the history
  • Loading branch information
chgibb committed Mar 16, 2018
1 parent be6b0df commit 394c77d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "node node_modules/.bin/tsc && node node_modules/.bin/jest"
"test": "bash scripts/tests.bash"
},
"author": "",
"license": "ISC",
Expand Down
11 changes: 11 additions & 0 deletions scripts/test.bash
@@ -0,0 +1,11 @@
#!/bin/bash
(set -o igncr) 2>/dev/null && set -o igncr; # For Cygwin on Windows compatibility

./node_modules/.bin/tsc
if [ $? != 0 ]; then
printf "tsc failed\n"
exit 1
fi

node scripts/test
exit $?

0 comments on commit 394c77d

Please sign in to comment.