Skip to content

Commit

Permalink
[Tests] add nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 9, 2021
1 parent 37e4cf1 commit 4d6cf90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .eslintrc
Expand Up @@ -3,6 +3,8 @@

"extends": "@ljharb/eslint-config/node/6",

"ignorePatterns": ["coverage"],

"rules": {
"array-bracket-newline": 0,
},
Expand Down
9 changes: 9 additions & 0 deletions .nycrc
@@ -0,0 +1,9 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"exclude": [
"coverage",
"test"
]
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run lint",
"lint": "eslint --ext=js,mjs .",
"tests-only": "tape test",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx aud --production",
"version": "auto-changelog && git add CHANGELOG.md",
Expand Down Expand Up @@ -47,6 +47,7 @@
"@ljharb/eslint-config": "^20.0.0",
"auto-changelog": "^2.3.0",
"eslint": "^8.4.1",
"nyc": "^14.1.1",
"safe-publish-latest": "^2.0.0",
"tape": "^5.3.2"
},
Expand Down

0 comments on commit 4d6cf90

Please sign in to comment.