From bfcbd49381bc0b492f3aa0cc4c4d3fbcc45f7acf Mon Sep 17 00:00:00 2001 From: Daniel Moore Date: Fri, 1 Sep 2023 08:13:24 -0700 Subject: [PATCH] restored tsc check and allowing mocha arguments passing from yarn test --- build/test.sh | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 build/test.sh diff --git a/build/test.sh b/build/test.sh new file mode 100755 index 00000000..40ef1040 --- /dev/null +++ b/build/test.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -euo pipefail + +c8 mocha "$@" +tsc diff --git a/package.json b/package.json index 88ad6697..f17c796b 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "docs:build": "yarn build && vitepress build civet.dev", "docs:preview": "yarn build && vitepress preview civet.dev", "prepublishOnly": "yarn build && yarn test", - "test": "c8 mocha" + "test": "bash ./build/test.sh" }, "author": "Daniel X. Moore", "license": "MIT",