From a206d04507ea42e17784a5e8df626445efc2848b Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 15 Feb 2023 10:13:06 -0500 Subject: [PATCH] Run type-checking on tests in CI --- .github/workflows/test.yaml | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7700ea1759..8b98a27628 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -126,4 +126,5 @@ jobs: run: | yarn tsc --version yarn check-types + yarn test:typecheck yarn test:types diff --git a/package.json b/package.json index b316c878ff..9d8f2f4058 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "test:types": "tsc -p test/typescript && echo \"Typetests passed\"", "test:watch": "vitest", "test:cov": "vitest --coverage", + "test:typecheck": "tsc -p test && echo \"Types passed\"", "build": "rollup -c", "prepublishOnly": "yarn clean && yarn check-types && yarn format:check && yarn lint && yarn test && yarn build", "examples:lint": "eslint --ext js,ts examples",