diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 44f5325ce0..a640e1f4f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,11 +46,7 @@ jobs: # Tests in apps/ are typechecked when their app is built, so we just do it here for libs/ # See https://bitwarden.atlassian.net/browse/EC-497 - name: Run typechecking - run: | - for p in libs/**/tsconfig.spec.json; do - echo "Typechecking $p" - npx tsc --noEmit --project $p - done + run: npm run test:types - name: Run tests run: npm run test diff --git a/package.json b/package.json index 45e71b82a3..0a68e19cfa 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "test": "jest", "test:watch": "jest --clearCache && jest --watch", "test:watch:all": "jest --watchAll", + "test:types": "for p in libs/**/tsconfig.spec.json; do echo \"Typechecking $p\"; tsc --noEmit --project $p; done", "docs:json": "compodoc -p ./tsconfig.json -e json -d .", "storybook": "npm run docs:json && start-storybook -p 6006", "build-storybook": "npm run docs:json && build-storybook",