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 65667b7 commit b83f36c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 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: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"pretest": "npm run lint",
"test": "npm run tests-only",
"posttest": "npx aud --production",
"tests-only": "tape 'test/**/*.js'",
"coverage": "covert test/*.js",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint .",
"postlint": "es-shim-api --bound"
},
Expand Down Expand Up @@ -48,10 +47,10 @@
"@ljharb/eslint-config": "^17.0.0",
"array-map": "^0.0.0",
"aud": "^1.1.1",
"covert": "^1.1.1",
"eslint": "^7.0.0",
"functions-have-names": "^1.2.1",
"has-strict-mode": "^1.0.0",
"nyc": "^10.3.2",
"object-keys": "^1.1.1",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.0"
Expand Down

0 comments on commit b83f36c

Please sign in to comment.