diff --git a/.github/workflows/automated-tests.yaml b/.github/workflows/automated-tests.yaml index 423034e9..4fc42e41 100644 --- a/.github/workflows/automated-tests.yaml +++ b/.github/workflows/automated-tests.yaml @@ -32,4 +32,6 @@ jobs: run: node --run lint - name: Run Unit Tests run: npm run test:unit + - name: Check TypeScript types + run: node --run test:types - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/package-lock.json b/package-lock.json index cb627dec..7c5782d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,6 +37,7 @@ "lint-staged": "^16.2.7", "prettier": "^3.8.1", "simple-git-hooks": "^2.13.1", + "typescript": "^5.9.3", "typescript-eslint": "^8.54.0" } }, diff --git a/package.json b/package.json index f001f9eb..f10f8497 100644 --- a/package.json +++ b/package.json @@ -47,9 +47,10 @@ "lint": "eslint && prettier --check .", "lint:fix": "eslint --fix && prettier . --write", "prepare": "simple-git-hooks", - "test": "node --run test:fixtures && node --run lint && node --run golden:check && node --run schemas:check && node --run test:unit && node --run test:spelling", + "test": "node --run test:fixtures && node --run lint && node --run golden:check && node --run schemas:check && node --run test:unit && node --run test:types && node --run test:spelling", "test:unit": "node --test scripts/**/__tests__/**/*.test.js", "test:spelling": "cspell .", + "test:types": "tsc --noEmit", "leaveMenu": "echo 'Leaving menu...'" }, "simple-git-hooks": { @@ -90,6 +91,7 @@ "lint-staged": "^16.2.7", "prettier": "^3.8.1", "simple-git-hooks": "^2.13.1", + "typescript": "^5.9.3", "typescript-eslint": "^8.54.0" }, "ntl": {