Skip to content

Commit

Permalink
[Tests] run nyc on all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 26, 2020
1 parent db3f685 commit b2f925f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage/
13 changes: 13 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"lines": 86,
"statements": 85.93,
"functions": 82.43,
"branches": 76.06,
"exclude": [
"coverage",
"test"
]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"tests-only": "tape test",
"test": "npm run tests-only",
"tests-only": "tape 'test/**/*.js'",
"test": "nyc npm run tests-only",
"posttest": "aud --production",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
Expand Down Expand Up @@ -50,6 +50,7 @@
"aud": "^1.1.2",
"auto-changelog": "^2.2.1",
"eslint": "^7.12.1",
"nyc": "^10.3.2",
"tape": "^5.0.1"
},
"auto-changelog": {
Expand Down

0 comments on commit b2f925f

Please sign in to comment.