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 1, 2020
1 parent d48cd06 commit c9ffb74
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
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"
]
}
7 changes: 3 additions & 4 deletions package.json
Expand Up @@ -11,10 +11,9 @@
"scripts": {
"prepublish": "safe-publish-latest",
"pretest": "npm run lint",
"tests-only": "node --harmony --es-staging test",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx aud",
"coverage": "covert test/index.js",
"posttest": "npx aud --production",
"lint": "eslint .",
"eccheck": "eclint check *.js **/*.js > /dev/null",
"version": "auto-changelog && git add CHANGELOG.md",
Expand All @@ -36,13 +35,13 @@
"@ljharb/eslint-config": "^17.2.0",
"aud": "^1.1.2",
"auto-changelog": "^2.2.0",
"covert": "^1.1.1",
"eclint": "^2.8.1",
"eslint": "^7.8.1",
"foreach": "^2.0.5",
"has-symbols": "^1.0.1",
"indexof": "^0.0.1",
"is": "^3.3.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
},
Expand Down

0 comments on commit c9ffb74

Please sign in to comment.