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 28, 2020
1 parent c9dd792 commit 0407f79
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist
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"
]
}
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"pretest": "npm run lint",
"test": "npm run --silent tests-only",
"posttest": "npx aud --production",
"tests-only": "tape 'test/**/*.js'",
"coverage": "covert test/*.js",
"coverage:quiet": "covert test/*.js --quiet",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint .",
"postlint": "es-shim-api --bound --property",
"build": "mkdir -p dist && browserify browserShim.js > dist/browser.js",
Expand Down Expand Up @@ -51,10 +49,10 @@
"aud": "^1.1.2",
"auto-changelog": "^2.2.0",
"browserify": "^16.5.2",
"covert": "^1.1.1",
"eslint": "^7.7.0",
"for-each": "^0.3.3",
"is": "^3.3.0",
"nyc": "^10.3.2",
"tape": "^5.0.1"
},
"testling": {
Expand Down

0 comments on commit 0407f79

Please sign in to comment.