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/
|
# 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
|
# See https://bitwarden.atlassian.net/browse/EC-497
|
||||||
- name: Run typechecking
|
- name: Run typechecking
|
||||||
run: |
|
run: npm run test:types
|
||||||
for p in libs/**/tsconfig.spec.json; do
|
|
||||||
echo "Typechecking $p"
|
|
||||||
npx tsc --noEmit --project $p
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --clearCache && jest --watch",
|
"test:watch": "jest --clearCache && jest --watch",
|
||||||
"test:watch:all": "jest --watchAll",
|
"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 .",
|
"docs:json": "compodoc -p ./tsconfig.json -e json -d .",
|
||||||
"storybook": "npm run docs:json && start-storybook -p 6006",
|
"storybook": "npm run docs:json && start-storybook -p 6006",
|
||||||
"build-storybook": "npm run docs:json && build-storybook",
|
"build-storybook": "npm run docs:json && build-storybook",
|
||||||
|
Loading…
Reference in New Issue
Block a user