Skip to content

Commit 1759858

Browse files
committed
add code coverage
1 parent 9e9e0ee commit 1759858

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.nyc_output/

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"test": "test"
88
},
99
"scripts": {
10-
"test": "mocha test/*.test.js"
10+
"test": "mocha test/*.test.js",
11+
"coverage": "nyc --reporter=text mocha test/*.test.js"
1112
},
1213
"keywords": [
1314
"directory",
@@ -22,13 +23,13 @@
2223
],
2324
"author": "Bruce A. MacNaughton",
2425
"license": "ISC",
25-
"dependencies": {
26-
},
26+
"dependencies": {},
2727
"bin": {
2828
"action-walk": "bin/walk"
2929
},
3030
"devDependencies": {
3131
"mocha": "^8.1.3",
32-
"chai": "^4.2.0"
32+
"chai": "^4.2.0",
33+
"nyc": "^15.1.0"
3334
}
3435
}

0 commit comments

Comments
 (0)