From 394c77d08c56a04a906c049915e4b56d09c6b8b4 Mon Sep 17 00:00:00 2001 From: Chris Gibb Date: Fri, 16 Mar 2018 15:49:18 -0400 Subject: [PATCH] use bash test harness --- package.json | 2 +- scripts/test.bash | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 scripts/test.bash diff --git a/package.json b/package.json index a8d3643a4..e7ec86f57 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/test.bash b/scripts/test.bash new file mode 100644 index 000000000..9bfe37028 --- /dev/null +++ b/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 $? \ No newline at end of file