Skip to content

Commit 5ec21aa

Browse files
committedJan 2, 2021
[Tests] run nyc on all tests
1 parent 6d72960 commit 5ec21aa

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed
 

‎.eslintignore

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

‎.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
# Only apps should have lockfiles
66
yarn.lock
77
package-lock.json
8+
9+
# coverage data
10+
coverage/
11+
.nyc_output/

‎.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"lint": "eslint . bin/*",
5656
"pretest": "npm run lint",
5757
"test": "npm run tests-only",
58-
"tests-only": "tap test/*.js"
58+
"tests-only": "nyc tap test/*.js"
5959
},
6060
"testling": {
6161
"files": "test/browser/*.js",

0 commit comments

Comments
 (0)
Please sign in to comment.