mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-21 11:35:34 +01:00
Add type check to npm scripts (#4631)
This commit is contained in:
parent
4f7bd77560
commit
084c89107e
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user