@@ -112,6 +112,19 @@ ERROR: Coverage for statements (64.29%) does not meet global threshold (95%)
112
112
"
113
113
` ;
114
114
115
+ exports [` c8 --exclude-after-remap applies exclude rules after source-maps are applied 1` ] = `
116
+ ",reachable
117
+ a = true
118
+ a = false
119
+ -------------|---------|----------|---------|---------|-------------------
120
+ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
121
+ -------------|---------|----------|---------|---------|-------------------
122
+ All files | 100 | 100 | 100 | 100 |
123
+ branch-2.js | 100 | 100 | 100 | 100 |
124
+ -------------|---------|----------|---------|---------|-------------------
125
+ ,"
126
+ ` ;
127
+
115
128
exports [` c8 ESM Modules collects coverage for ESM modules 1` ] = `
116
129
",----------|---------|----------|---------|---------|-------------------
117
130
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
@@ -139,24 +152,24 @@ hey
139
152
--------------------------|---------|----------|---------|---------|--------------------------------
140
153
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
141
154
--------------------------|---------|----------|---------|---------|--------------------------------
142
- All files | 72.94 | 58.23 | 61.11 | 72.94 |
155
+ All files | 73.17 | 58.02 | 62.16 | 73.17 |
143
156
bin | 78.85 | 60 | 66.67 | 78.85 |
144
157
c8.js | 78.85 | 60 | 66.67 | 78.85 | 22,27-29,32-33,41-43,50-51
145
- lib | 76.25 | 51.85 | 71.43 | 76.25 |
158
+ lib | 76.44 | 51.79 | 72.73 | 76.44 |
146
159
is-cjs-esm-bridge.js | 90 | 25 | 100 | 90 | 9
147
- parse-args.js | 96.25 | 45.45 | 100 | 96.25 | 114-115,123-124,137-138
148
- report.js | 75.52 | 58.82 | 83.33 | 75.52 | ...210,240-241,268-269, 275-277
160
+ parse-args.js | 96.39 | 45.45 | 100 | 96.39 | 120-121,129-130,143-144
161
+ report.js | 75.42 | 58.33 | 84.62 | 75.42 | ...216,246-247,274- 275,281-283
149
162
source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
150
- lib/commands | 45.05 | 75 | 16.67 | 45.05 |
163
+ lib/commands | 45.65 | 75 | 16.67 | 45.65 |
151
164
check-coverage.js | 21.31 | 100 | 0 | 21.31 | 9-11,14-27,30-44,46-61
152
- report.js | 93.33 | 71.43 | 50 | 93.33 | 9-10
165
+ report.js | 93.55 | 71.43 | 50 | 93.55 | 9-10
153
166
test/fixtures | 83.33 | 85.71 | 66.67 | 83.33 |
154
167
async.js | 100 | 100 | 100 | 100 |
155
168
normal.js | 75 | 66.67 | 33.33 | 75 | 14-16,18-20
156
169
--------------------------|---------|----------|---------|---------|--------------------------------
157
- ,ERROR: Coverage for lines (72.94 %) does not meet global threshold (101%)
158
- ERROR: Coverage for branches (58.23 %) does not meet global threshold (82%)
159
- ERROR: Coverage for statements (72.94 %) does not meet global threshold (95%)
170
+ ,ERROR: Coverage for lines (73.17 %) does not meet global threshold (101%)
171
+ ERROR: Coverage for branches (58.02 %) does not meet global threshold (82%)
172
+ ERROR: Coverage for statements (73.17 %) does not meet global threshold (95%)
160
173
"
161
174
` ;
162
175
@@ -166,17 +179,17 @@ ERROR: Coverage for branches (60%) does not meet threshold (82%) for bin/c8.js
166
179
ERROR: Coverage for statements (78.85%) does not meet threshold (95%) for bin/c8.js
167
180
ERROR: Coverage for lines (21.31%) does not meet threshold (101%) for lib/commands/check-coverage.js
168
181
ERROR: Coverage for statements (21.31%) does not meet threshold (95%) for lib/commands/check-coverage.js
169
- ERROR: Coverage for lines (93.33 %) does not meet threshold (101%) for lib/commands/report.js
182
+ ERROR: Coverage for lines (93.55 %) does not meet threshold (101%) for lib/commands/report.js
170
183
ERROR: Coverage for branches (71.43%) does not meet threshold (82%) for lib/commands/report.js
171
- ERROR: Coverage for statements (93.33 %) does not meet threshold (95%) for lib/commands/report.js
184
+ ERROR: Coverage for statements (93.55 %) does not meet threshold (95%) for lib/commands/report.js
172
185
ERROR: Coverage for lines (90%) does not meet threshold (101%) for lib/is-cjs-esm-bridge.js
173
186
ERROR: Coverage for branches (25%) does not meet threshold (82%) for lib/is-cjs-esm-bridge.js
174
187
ERROR: Coverage for statements (90%) does not meet threshold (95%) for lib/is-cjs-esm-bridge.js
175
- ERROR: Coverage for lines (96.25 %) does not meet threshold (101%) for lib/parse-args.js
188
+ ERROR: Coverage for lines (96.39 %) does not meet threshold (101%) for lib/parse-args.js
176
189
ERROR: Coverage for branches (45.45%) does not meet threshold (82%) for lib/parse-args.js
177
- ERROR: Coverage for lines (75.52 %) does not meet threshold (101%) for lib/report.js
178
- ERROR: Coverage for branches (58.82 %) does not meet threshold (82%) for lib/report.js
179
- ERROR: Coverage for statements (75.52 %) does not meet threshold (95%) for lib/report.js
190
+ ERROR: Coverage for lines (75.42 %) does not meet threshold (101%) for lib/report.js
191
+ ERROR: Coverage for branches (58.33 %) does not meet threshold (82%) for lib/report.js
192
+ ERROR: Coverage for statements (75.42 %) does not meet threshold (95%) for lib/report.js
180
193
ERROR: Coverage for lines (45%) does not meet threshold (101%) for lib/source-map-from-file.js
181
194
ERROR: Coverage for statements (45%) does not meet threshold (95%) for lib/source-map-from-file.js
182
195
ERROR: Coverage for lines (100%) does not meet threshold (101%) for test/fixtures/async.js
@@ -189,9 +202,9 @@ ERROR: Coverage for statements (75%) does not meet threshold (95%) for test/fixt
189
202
exports [` c8 check-coverage exits with 0 if coverage within threshold 1` ] = ` ",,"` ;
190
203
191
204
exports [` c8 check-coverage exits with 1 if coverage is below threshold 1` ] = `
192
- ",,ERROR: Coverage for lines (72.94 %) does not meet global threshold (101%)
193
- ERROR: Coverage for branches (58.23 %) does not meet global threshold (82%)
194
- ERROR: Coverage for statements (72.94 %) does not meet global threshold (95%)
205
+ ",,ERROR: Coverage for lines (73.17 %) does not meet global threshold (101%)
206
+ ERROR: Coverage for branches (58.02 %) does not meet global threshold (82%)
207
+ ERROR: Coverage for statements (73.17 %) does not meet global threshold (95%)
195
208
"
196
209
` ;
197
210
@@ -274,17 +287,17 @@ exports[`c8 report generates report from existing temporary files 1`] = `
274
287
" ,--------------------------|---------|----------|---------|---------|--------------------------------
275
288
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
276
289
--------------------------|---------|----------|---------|---------|--------------------------------
277
- All files | 72.94 | 58.23 | 61.11 | 72.94 |
290
+ All files | 73.17 | 58.02 | 62.16 | 73.17 |
278
291
bin | 78.85 | 60 | 66.67 | 78.85 |
279
292
c8.js | 78.85 | 60 | 66.67 | 78.85 | 22,27-29,32-33,41-43,50-51
280
- lib | 76.25 | 51.85 | 71.43 | 76.25 |
293
+ lib | 76.44 | 51.79 | 72.73 | 76.44 |
281
294
is-cjs-esm-bridge.js | 90 | 25 | 100 | 90 | 9
282
- parse-args.js | 96.25 | 45.45 | 100 | 96.25 | 114-115,123-124,137-138
283
- report.js | 75.52 | 58.82 | 83.33 | 75.52 | ...210,240-241,268-269, 275-277
295
+ parse-args.js | 96.39 | 45.45 | 100 | 96.39 | 120-121,129-130,143-144
296
+ report.js | 75.42 | 58.33 | 84.62 | 75.42 | ...216,246-247,274- 275,281-283
284
297
source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
285
- lib/commands | 45.05 | 75 | 16.67 | 45.05 |
298
+ lib/commands | 45.65 | 75 | 16.67 | 45.65 |
286
299
check-coverage.js | 21.31 | 100 | 0 | 21.31 | 9-11,14-27,30-44,46-61
287
- report.js | 93.33 | 71.43 | 50 | 93.33 | 9-10
300
+ report.js | 93.55 | 71.43 | 50 | 93.55 | 9-10
288
301
test/fixtures | 83.33 | 85.71 | 66.67 | 83.33 |
289
302
async.js | 100 | 100 | 100 | 100 |
290
303
normal.js | 75 | 66.67 | 33.33 | 75 | 14-16,18-20
@@ -296,24 +309,24 @@ exports[`c8 report supports --check-coverage, when generating reports 1`] = `
296
309
" ,--------------------------|---------|----------|---------|---------|--------------------------------
297
310
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
298
311
--------------------------|---------|----------|---------|---------|--------------------------------
299
- All files | 72.94 | 58.23 | 61.11 | 72.94 |
312
+ All files | 73.17 | 58.02 | 62.16 | 73.17 |
300
313
bin | 78.85 | 60 | 66.67 | 78.85 |
301
314
c8.js | 78.85 | 60 | 66.67 | 78.85 | 22,27-29,32-33,41-43,50-51
302
- lib | 76.25 | 51.85 | 71.43 | 76.25 |
315
+ lib | 76.44 | 51.79 | 72.73 | 76.44 |
303
316
is-cjs-esm-bridge.js | 90 | 25 | 100 | 90 | 9
304
- parse-args.js | 96.25 | 45.45 | 100 | 96.25 | 114-115,123-124,137-138
305
- report.js | 75.52 | 58.82 | 83.33 | 75.52 | ...210,240-241,268-269, 275-277
317
+ parse-args.js | 96.39 | 45.45 | 100 | 96.39 | 120-121,129-130,143-144
318
+ report.js | 75.42 | 58.33 | 84.62 | 75.42 | ...216,246-247,274- 275,281-283
306
319
source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
307
- lib/commands | 45.05 | 75 | 16.67 | 45.05 |
320
+ lib/commands | 45.65 | 75 | 16.67 | 45.65 |
308
321
check-coverage.js | 21.31 | 100 | 0 | 21.31 | 9-11,14-27,30-44,46-61
309
- report.js | 93.33 | 71.43 | 50 | 93.33 | 9-10
322
+ report.js | 93.55 | 71.43 | 50 | 93.55 | 9-10
310
323
test/fixtures | 83.33 | 85.71 | 66.67 | 83.33 |
311
324
async.js | 100 | 100 | 100 | 100 |
312
325
normal.js | 75 | 66.67 | 33.33 | 75 | 14-16,18-20
313
326
--------------------------|---------|----------|---------|---------|--------------------------------
314
- ,ERROR: Coverage for lines (72.94 %) does not meet global threshold (101%)
315
- ERROR: Coverage for branches (58.23 %) does not meet global threshold (82%)
316
- ERROR: Coverage for statements (72.94 %) does not meet global threshold (95%)
327
+ ,ERROR: Coverage for lines (73.17 %) does not meet global threshold (101%)
328
+ ERROR: Coverage for branches (58.02 %) does not meet global threshold (82%)
329
+ ERROR: Coverage for statements (73.17 %) does not meet global threshold (95%)
317
330
"
318
331
`;
319
332
0 commit comments