Skip to content

Commit 5700269

Browse files
committed
[Tests] run nyc on all tests
1 parent 65d842e commit 5700269

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage/

.nycrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"all": true,
3+
"check-coverage": false,
4+
"reporter": ["text-summary", "text", "html", "json"],
5+
"lines": 86,
6+
"statements": 85.93,
7+
"functions": 82.43,
8+
"branches": 76.06,
9+
"exclude": [
10+
"coverage",
11+
"test"
12+
]
13+
}

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
},
1616
"scripts": {
1717
"prepublish": "safe-publish-latest",
18-
"lint": "eslint .",
18+
"lint": "eslint --ext=js,mjs .",
1919
"pretest": "npm run lint",
20-
"tests-only": "node test",
20+
"tests-only": "nyc tape 'test/**/*.js'",
2121
"test": "npm run tests-only",
2222
"posttest": "npx aud --production",
2323
"version": "auto-changelog && git add CHANGELOG.md",
@@ -50,6 +50,7 @@
5050
"auto-changelog": "^2.0.0",
5151
"eslint": "^6.8.0",
5252
"for-each": "^0.3.3",
53+
"nyc": "^10.3.2",
5354
"object-inspect": "^1.7.0",
5455
"safe-publish-latest": "^1.1.4",
5556
"tape": "^5.0.0-next.5"

0 commit comments

Comments
 (0)