Skip to content

Commit

Permalink
Merge pull request #153 from lo1tuma/nyc
Browse files Browse the repository at this point in the history
Use nyc instead of istanbul
  • Loading branch information
lo1tuma authored Mar 2, 2018
2 parents 1e85c2c + 54b7275 commit 8e5e547
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
build/
.idea/
*.log
.nyc_output/
19 changes: 0 additions & 19 deletions .istanbul.yml

This file was deleted.

27 changes: 23 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"scripts": {
"pretest": "eslint .",
"test": "npm run test:unit --coverage && npm run check-coverage",
"test:unit": "istanbul test _mocha test -- --recursive --reporter dot",
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100 --lines 100",
"test": "npm run test:unit:with-coverage",
"test:unit": "mocha test --recursive --reporter dot",
"test:unit:with-coverage": "nyc npm run test:unit",
"coveralls": "cat ./build/coverage/lcov.info | coveralls",
"changelog": "pr-log"
},
Expand All @@ -25,6 +25,7 @@
"pr-log": "^2.0.0",
"istanbul": "^0.4.2",
"mocha": "^5.0.1",
"nyc": "^11.4.1",
"eslint": "^4.0.0",
"coveralls": "^3.0.0"
},
Expand All @@ -49,5 +50,23 @@
"eslintplugin",
"eslint-plugin",
"mocha"
]
],
"nyc": {
"all": true,
"cache": false,
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"exclude": [
"build",
"test"
],
"reporter": [
"lcov",
"text-summary"
],
"check-coverage": true,
"report-dir": "build"
}
}

0 comments on commit 8e5e547

Please sign in to comment.