Skip to content

Commit 86b53e1

Browse files
committed
chore(tools): add coverage output to test run
1 parent a348d43 commit 86b53e1

File tree

4 files changed

+851
-5
lines changed

4 files changed

+851
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
build/
3+
.nyc_output/

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"scripts": {
1616
"build": "tsc",
17-
"test": "cross-env TS_NODE_PROJECT=\"test/tsconfig.json\" mocha -r ts-node/register test/*.ts",
17+
"test": "cross-env TS_NODE_PROJECT=\"test/tsconfig.json\" nyc mocha -r ts-node/register test/*.ts",
1818
"format": "prettier --write ./src",
1919
"commit": "ts-node src/index.ts prompt",
2020
"prepare": "npm run build && husky install",
@@ -44,6 +44,7 @@
4444
"fast-check": "^2.13.0",
4545
"husky": "^5.1.3",
4646
"mocha": "^8.3.2",
47+
"nyc": "^15.1.0",
4748
"prettier": "^2.2.1",
4849
"ts-node": "^9.1.1",
4950
"typescript": "^4.2.3"

0 commit comments

Comments
 (0)