File tree 4 files changed +9
-14
lines changed 4 files changed +9
-14
lines changed Original file line number Diff line number Diff line change
1
+ coverage /
2
+ node_modules /
1
3
.DS_Store
2
4
* .log
3
- node_modules /
4
- .nyc_output /
5
- coverage /
6
5
yarn.lock
Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ function transform(options) {
150
150
151
151
plugins . push ( [ filter , { allow : settings . allow , deny : settings . deny } ] )
152
152
153
- /* istanbul ignore if - hard to check. */
153
+ // Hard to check.
154
+ /* c8 ignore next 3 */
154
155
if ( cli . flags . diff ) {
155
156
plugins . push ( diff )
156
157
}
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ var control = require('remark-message-control')
5
5
module . exports = filter
6
6
7
7
function filter ( options ) {
8
- var settings = options || /* istanbul ignore next */ { }
8
+ /* c8 ignore next */
9
+ var settings = options || { }
9
10
10
11
if ( settings . allow && settings . deny ) {
11
12
throw new Error (
Original file line number Diff line number Diff line change 82
82
"vfile-sort" : " ^2.0.0"
83
83
},
84
84
"devDependencies" : {
85
- "nyc " : " ^15.0 .0" ,
85
+ "c8 " : " ^7.10 .0" ,
86
86
"prettier" : " ^2.0.0" ,
87
87
"remark-cli" : " ^9.0.0" ,
88
88
"remark-preset-wooorm" : " ^8.0.0" ,
92
92
},
93
93
"scripts" : {
94
94
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
95
- "test-api" : " node test" ,
96
- "test-coverage" : " nyc --reporter lcov tape test/index.js " ,
95
+ "test-api" : " node test/index.js " ,
96
+ "test-coverage" : " c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 -- reporter lcov npm run test-api " ,
97
97
"test" : " npm run format && npm run test-coverage"
98
98
},
99
99
"alex" : {
100
100
"allow" : [
101
101
" butt"
102
102
]
103
103
},
104
- "nyc" : {
105
- "check-coverage" : true ,
106
- "lines" : 100 ,
107
- "functions" : 100 ,
108
- "branches" : 100
109
- },
110
104
"prettier" : {
111
105
"tabWidth" : 2 ,
112
106
"useTabs" : false ,
You can’t perform that action at this time.
0 commit comments