Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Add scripts to collect ts test coverage #117

Merged
merged 1 commit into from
Nov 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ packages/_generated/src
!.yarn/releases
!.yarn/sdks
!.yarn/versions
coverage
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ playground-test:
playground-test-watch:
yarn workspace playground run test:watch

playground-test-coverage:
yarn workspace playground run test:coverage

playground-bundlesize:
yarn workspace playground run bundlesize

Expand All @@ -69,6 +72,9 @@ components-test:
components-test-watch:
yarn workspace @paritytech/components run test:watch

components-test-coverage:
yarn workspace @paritytech/components run test:coverage

################################################################################
# ENTRYPOINT: crate-extractor
################################################################################
Expand Down
3 changes: 2 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"clean": "rimraf dist pkg node_modules",
"test": "jest --update-snapshot",
"test:watch": "jest --update-snapshot --watch",
"test:clear": "jest --clearCache"
"test:clear": "jest --clearCache",
"test:coverage": "jest --update-snapshot --collectCoverage"
},
"author": "",
"license": "ISC",
Expand Down
1 change: 1 addition & 0 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"test": "jest --update-snapshot",
"test:watch": "jest --update-snapshot --watch",
"test:clear": "jest --clearCache",
"test:coverage": "jest --update-snapshot --collectCoverage",
"bundlesize": "yarn bundlesize:generate && webpack-bundle-analyzer --port 8081 bundle-size-stats.json dist",
"bundlesize:generate": "yarn build && yarn webpack --stats --json=bundle-size-stats.json"
},
Expand Down