Skip to content

Commit 86cdf7b

Browse files
author
naman-contentstack
committed
added command for coverage reports
1 parent c3595aa commit 86cdf7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
8585
"version": "oclif readme && git add README.md",
8686
"clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json",
87-
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
87+
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"",
88+
"test:unit:report:json": "mocha --reporter json --reporter-options output=report.json --forbid-only \"test/unit/**/*.test.ts\" && nyc --reporter=clover --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
8889
},
8990
"engines": {
9091
"node": ">=16"

0 commit comments

Comments
 (0)