Skip to content

Commit

Permalink
[Tests] add nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 22, 2024
1 parent 42cfba1 commit 6fad824
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ node_modules
npm-shrinkwrap.json
package-lock.json
yarn.lock

coverage/
.nyc_output/
9 changes: 9 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"exclude": [
"test/**"
],
"reporter": [
"html",
"text"
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"scripts": {
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint",
"tests-only": "tape 'test/**/*.js'",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --production"
},
Expand Down Expand Up @@ -40,6 +40,7 @@
"@ljharb/eslint-config": "^21.1.1",
"eslint": "=8.8.0",
"hash-test-vectors": "^1.3.2",
"nyc": "^10.3.2",
"object.entries": "^1.1.8",
"pseudorandombytes": "^2.0.0",
"safe-buffer": "^5.2.1",
Expand Down

0 comments on commit 6fad824

Please sign in to comment.