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 Dec 4, 2020
1 parent 4a716b8 commit 8df2e4b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
coverage/
13 changes: 13 additions & 0 deletions .nycrc
@@ -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"
]
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -16,7 +16,7 @@
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
"lint": "eslint .",
"pretest": "npm run lint",
"tests-only": "tape test",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "aud --production"
},
Expand Down Expand Up @@ -46,6 +46,7 @@
"auto-changelog": "^2.2.0",
"eslint": "^7.6.0",
"for-each": "^0.3.3",
"nyc": "^10.3.2",
"object-inspect": "^1.8.0",
"tape": "^5.0.1"
},
Expand Down

0 comments on commit 8df2e4b

Please sign in to comment.