Skip to content

Commit e78137e

Browse files
committed
package.json: exclude test from c8 coverage
I had thought that c8 used the same default excludes as nyc, which includes test{,s}/** but apparently it does not, because test appears in my coverage results. Exclude it.
1 parent 4160a4e commit e78137e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,10 @@
9090
"mocha": {
9191
"checkLeaks": true,
9292
"exit": false
93+
},
94+
"c8": {
95+
"exclude": [
96+
"test"
97+
]
9398
}
9499
}

0 commit comments

Comments
 (0)