Skip to content

Commit 5620d35

Browse files
committed
cosmetic
1 parent f5cb8eb commit 5620d35

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

npm-scripts.mjs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ async function run() {
8989
}
9090

9191
case 'coverage': {
92-
executeCmd(`jest --coverage ${taskArgs}`);
93-
executeCmd('open-cli coverage/lcov-report/index.html');
92+
coverage();
9493

9594
break;
9695
}
@@ -115,6 +114,7 @@ async function run() {
115114

116115
case 'docs:watch': {
117116
generateDocs();
117+
118118
executeCmd('open-cli docs/index.html');
119119
executeCmd('typedoc --watch');
120120

@@ -192,6 +192,13 @@ function test() {
192192
executeCmd(`jest --silent false --detectOpenHandles ${taskArgs}`);
193193
}
194194

195+
function coverage() {
196+
logInfo('coverage()');
197+
198+
executeCmd(`jest --coverage ${taskArgs}`);
199+
executeCmd('open-cli coverage/lcov-report/index.html');
200+
}
201+
195202
function installDeps() {
196203
logInfo('installDeps()');
197204

0 commit comments

Comments
 (0)