Skip to content

Commit bfbee97

Browse files
author
whyboris
committed
nyc instead of istanbul
1 parent c23099c commit bfbee97

File tree

4 files changed

+763
-206
lines changed

4 files changed

+763
-206
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- ./node_modules
1616
- run: npm run coverage
1717
- run: npm run check-coverage
18+
- run: npm run report
1819

1920
build-latest: &latest-build
2021
docker:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ node_modules/
2020
npm-debug.log
2121
yarn-error.log
2222

23-
# Istanbul
23+
# NYC
2424
coverage/
25+
.nyc_output/
2526

2627
# Bower
2728
bower_components/

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@
3838
"scripts": {
3939
"lint": "eslint .",
4040
"style": "yarn run lint",
41-
"coverage": "istanbul cover _mocha -- -u exports -R spec ./test/**/*",
42-
"check-coverage": "istanbul check-coverage --statements 40 --functions 40 --branches 0 --lines 40 ./coverage/coverage.json",
4341
"test": "yarn run coverage",
42+
"coverage": "nyc mocha",
43+
"coverage-html": "nyc report --reporter=html && open ./coverage/index.html",
44+
"check-coverage": "nyc check-coverage --statements 40 --functions 40 --branches 0 --lines 40",
45+
"report": "nyc report",
4446
"codacy": "cat ./coverage/lcov.info | codacy-coverage",
4547
"preversion": "yarn run test",
4648
"postversion": "git push && git push --tags"
@@ -62,7 +64,7 @@
6264
"eslint": "^4.19.1",
6365
"eslint-plugin-promise": "^3.8.0",
6466
"eslint-plugin-standard": "^3.1.0",
65-
"istanbul": "^0.4.5",
67+
"nyc": "^13.2.0",
6668
"mocha": "^5.2.0",
6769
"sinon": "^7.2.3"
6870
},

0 commit comments

Comments
 (0)