Skip to content

Commit 6d3fbdf

Browse files
JaKXztmcw
authored andcommitted
chore: adds nyc and a newer version of mocha to accurately report coverage
1 parent 07f4751 commit 6d3fbdf

File tree

3 files changed

+6
-90
lines changed

3 files changed

+6
-90
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ node_modules
22
.idea
33
*.iml
44
coverage
5+
.nyc_output
56
.cache
67
npm-debug.log

Makefile.js

-87
This file was deleted.

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,20 @@
3535
"dateformat": "^1.0.11",
3636
"eslint": "^1.10.3",
3737
"eslint-release": "^0.10.0",
38-
"istanbul": "^0.4.1",
3938
"linefix": "^0.1.1",
40-
"mocha": "^2.3.3",
39+
"mocha": "^3.4.2",
4140
"npm-license": "^0.3.1",
41+
"nyc": "^10.3.2",
4242
"semver": "^5.0.3",
4343
"shelljs": "^0.5.3",
4444
"shelljs-nodecli": "^0.1.1",
4545
"should": "^5.0.1"
4646
},
4747
"license": "Apache-2.0",
4848
"scripts": {
49-
"test": "npm run lint && node Makefile.js test",
49+
"pretest": "npm run lint",
50+
"test": "nyc mocha",
51+
"coveralls": "nyc report --reporter=text-lcov | coveralls",
5052
"lint": "eslint lib/",
5153
"release": "eslint-release",
5254
"ci-release": "eslint-ci-release",

0 commit comments

Comments
 (0)