Skip to content

Commit 9676a83

Browse files
JacoKosterziluvatar
authored andcommitted
Added Istanbul to check test-coverage (#468)
* Added Istanbul to check test-coverage * node_modules_bak is generated and automatically removed by cost-of-modules and isn't needed in the ignore.
1 parent ad98358 commit 9676a83

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
2-
.DS_Store
2+
.DS_Store
3+
.nyc_output
4+
coverage

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "JSON Web Token implementation (symmetric and asymmetric)",
55
"main": "index.js",
66
"scripts": {
7-
"test": "mocha --require test/util/fakeDate && nsp check && cost-of-modules"
7+
"test": "nyc --reporter=html --reporter=text mocha --require test/util/fakeDate && nsp check && cost-of-modules"
88
},
99
"repository": {
1010
"type": "git",
@@ -36,6 +36,7 @@
3636
"cost-of-modules": "^1.0.1",
3737
"mocha": "^2.1.0",
3838
"nsp": "^2.6.2",
39+
"nyc": "^11.8.0",
3940
"sinon": "^1.15.4"
4041
},
4142
"engines": {

0 commit comments

Comments
 (0)