File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 30
30
"storybook:analyze" : " web-component-analyzer **/*.element.ts --outFile custom-elements.json" ,
31
31
"test" : " web-test-runner --coverage" ,
32
32
"test:watch" : " web-test-runner --watch" ,
33
+ "test:coverage" : " web-test-runner --node-resolve --coverage" ,
34
+ "test:coverage-for" : " node ./scripts/test-coverage-package.js" ,
33
35
"dev" : " npm run clean && npm run storybook" ,
34
36
"build" : " lerna run --scope @umbraco-ui/uui-css build && lerna run build" ,
35
37
"build:prod" : " npm run clean && npm run build && npm run test" ,
Original file line number Diff line number Diff line change
1
+ const { execSync } = require ( 'child_process' ) ;
2
+
3
+ const packageName = process . argv [ 2 ] ;
4
+ console . log ( 'Test coverage for package: ' + packageName ) ;
5
+
6
+ execSync (
7
+ `web-test-runner "packages/${ packageName } /**/*.test.ts" --node-resolve --coverage` ,
8
+ { stdio : 'inherit' }
9
+ ) ;
You can’t perform that action at this time.
0 commit comments