@@ -144,21 +144,6 @@ All files | 83.33 | 85.71 | 66.66 | 83.33 |
144
144
,"
145
145
` ;
146
146
147
- exports [` c8 ESM Modules collects coverage for ESM modules 1` ] = `
148
- ",----------|---------|----------|---------|---------|-------------------
149
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
150
- ----------|---------|----------|---------|---------|-------------------
151
- All files | 0 | 0 | 0 | 0 |
152
- ----------|---------|----------|---------|---------|-------------------
153
- ,Error [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension: /Users/bencoe/oss/c8/test/fixtures/export.cjs
154
- at Loader.resolve [as _resolve] (internal/modules/esm/default_resolve.js:93:13)
155
- at Loader.resolve (internal/modules/esm/loader.js:58:33)
156
- at Loader.getModuleJob (internal/modules/esm/loader.js:113:40)
157
- at ModuleWrap.promises.module.link (internal/modules/esm/module_job.js:32:40)
158
- at link (internal/modules/esm/module_job.js:31:36)
159
- "
160
- ` ;
161
-
162
147
exports [` c8 check-coverage --100 1` ] = `
163
148
",hey
164
149
i am a line of code
@@ -194,12 +179,12 @@ hey
194
179
--------------------------|---------|----------|---------|---------|--------------------------------
195
180
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
196
181
--------------------------|---------|----------|---------|---------|--------------------------------
197
- All files | 73.6 | 59.03 | 62.5 | 73.6 |
182
+ All files | 73.72 | 59.03 | 62.5 | 73.72 |
198
183
bin | 78.84 | 60 | 66.66 | 78.84 |
199
184
c8.js | 78.84 | 60 | 66.66 | 78.84 | 22,27-29,32-33,41-43,50-51
200
- lib | 78.19 | 54.38 | 72 | 78.19 |
185
+ lib | 78.32 | 54.38 | 72 | 78.32 |
201
186
is-cjs-esm-bridge.js | 90 | 25 | 100 | 90 | 9
202
- parse-args.js | 97.19 | 58.33 | 100 | 97.19 | 155-156,177-178,191-192
187
+ parse-args.js | 97.24 | 58.33 | 100 | 97.24 | 159-160,181-182,195-196
203
188
report.js | 75.47 | 58.33 | 78.57 | 75.47 | ...251,278-279,285-287,308-313
204
189
source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
205
190
lib/commands | 41.44 | 66.66 | 16.66 | 41.44 |
@@ -209,9 +194,9 @@ All files | 73.6 | 59.03 | 62.5 | 73.6 |
209
194
async.js | 100 | 100 | 100 | 100 |
210
195
normal.js | 75 | 66.66 | 33.33 | 75 | 14-16,18-20
211
196
--------------------------|---------|----------|---------|---------|--------------------------------
212
- ,ERROR: Coverage for lines (73.6 %) does not meet global threshold (101%)
197
+ ,ERROR: Coverage for lines (73.72 %) does not meet global threshold (101%)
213
198
ERROR: Coverage for branches (59.03%) does not meet global threshold (82%)
214
- ERROR: Coverage for statements (73.6 %) does not meet global threshold (95%)
199
+ ERROR: Coverage for statements (73.72 %) does not meet global threshold (95%)
215
200
"
216
201
` ;
217
202
@@ -227,7 +212,7 @@ ERROR: Coverage for statements (80.48%) does not meet threshold (95%) for lib/co
227
212
ERROR: Coverage for lines (90%) does not meet threshold (101%) for lib/is-cjs-esm-bridge.js
228
213
ERROR: Coverage for branches (25%) does not meet threshold (82%) for lib/is-cjs-esm-bridge.js
229
214
ERROR: Coverage for statements (90%) does not meet threshold (95%) for lib/is-cjs-esm-bridge.js
230
- ERROR: Coverage for lines (97.19 %) does not meet threshold (101%) for lib/parse-args.js
215
+ ERROR: Coverage for lines (97.24 %) does not meet threshold (101%) for lib/parse-args.js
231
216
ERROR: Coverage for branches (58.33%) does not meet threshold (82%) for lib/parse-args.js
232
217
ERROR: Coverage for lines (75.47%) does not meet threshold (101%) for lib/report.js
233
218
ERROR: Coverage for branches (58.33%) does not meet threshold (82%) for lib/report.js
@@ -242,19 +227,19 @@ ERROR: Coverage for statements (75%) does not meet threshold (95%) for test/fixt
242
227
` ;
243
228
244
229
exports [` c8 check-coverage check-coverage command with --100 1` ] = `
245
- ",,ERROR: Coverage for lines (77.4 %) does not meet global threshold (100%)
230
+ ",,ERROR: Coverage for lines (77.51 %) does not meet global threshold (100%)
246
231
ERROR: Coverage for functions (66.66%) does not meet global threshold (100%)
247
232
ERROR: Coverage for branches (62.35%) does not meet global threshold (100%)
248
- ERROR: Coverage for statements (77.4 %) does not meet global threshold (100%)
233
+ ERROR: Coverage for statements (77.51 %) does not meet global threshold (100%)
249
234
"
250
235
` ;
251
236
252
237
exports [` c8 check-coverage exits with 0 if coverage within threshold 1` ] = ` ",,"` ;
253
238
254
239
exports [` c8 check-coverage exits with 1 if coverage is below threshold 1` ] = `
255
- ",,ERROR: Coverage for lines (73.6 %) does not meet global threshold (101%)
240
+ ",,ERROR: Coverage for lines (73.72 %) does not meet global threshold (101%)
256
241
ERROR: Coverage for branches (59.03%) does not meet global threshold (82%)
257
- ERROR: Coverage for statements (73.6 %) does not meet global threshold (95%)
242
+ ERROR: Coverage for statements (73.72 %) does not meet global threshold (95%)
258
243
"
259
244
` ;
260
245
@@ -337,12 +322,12 @@ exports[`c8 report generates report from existing temporary files 1`] = `
337
322
" ,--------------------------|---------|----------|---------|---------|--------------------------------
338
323
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
339
324
--------------------------|---------|----------|---------|---------|--------------------------------
340
- All files | 73.6 | 59.03 | 62.5 | 73.6 |
325
+ All files | 73.72 | 59.03 | 62.5 | 73.72 |
341
326
bin | 78.84 | 60 | 66.66 | 78.84 |
342
327
c8.js | 78.84 | 60 | 66.66 | 78.84 | 22,27-29,32-33,41-43,50-51
343
- lib | 78.19 | 54.38 | 72 | 78.19 |
328
+ lib | 78.32 | 54.38 | 72 | 78.32 |
344
329
is-cjs-esm-bridge.js | 90 | 25 | 100 | 90 | 9
345
- parse-args.js | 97.19 | 58.33 | 100 | 97.19 | 155-156,177-178,191-192
330
+ parse-args.js | 97.24 | 58.33 | 100 | 97.24 | 159-160,181-182,195-196
346
331
report.js | 75.47 | 58.33 | 78.57 | 75.47 | ...251,278-279,285-287,308-313
347
332
source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
348
333
lib/commands | 41.44 | 66.66 | 16.66 | 41.44 |
@@ -359,12 +344,12 @@ exports[`c8 report supports --check-coverage, when generating reports 1`] = `
359
344
" ,--------------------------|---------|----------|---------|---------|--------------------------------
360
345
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
361
346
--------------------------|---------|----------|---------|---------|--------------------------------
362
- All files | 73.6 | 59.03 | 62.5 | 73.6 |
347
+ All files | 73.72 | 59.03 | 62.5 | 73.72 |
363
348
bin | 78.84 | 60 | 66.66 | 78.84 |
364
349
c8.js | 78.84 | 60 | 66.66 | 78.84 | 22,27-29,32-33,41-43,50-51
365
- lib | 78.19 | 54.38 | 72 | 78.19 |
350
+ lib | 78.32 | 54.38 | 72 | 78.32 |
366
351
is-cjs-esm-bridge.js | 90 | 25 | 100 | 90 | 9
367
- parse-args.js | 97.19 | 58.33 | 100 | 97.19 | 155-156,177-178,191-192
352
+ parse-args.js | 97.24 | 58.33 | 100 | 97.24 | 159-160,181-182,195-196
368
353
report.js | 75.47 | 58.33 | 78.57 | 75.47 | ...251,278-279,285-287,308-313
369
354
source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
370
355
lib/commands | 41.44 | 66.66 | 16.66 | 41.44 |
@@ -374,9 +359,9 @@ All files | 73.6 | 59.03 | 62.5 | 73.6 |
374
359
async.js | 100 | 100 | 100 | 100 |
375
360
normal.js | 75 | 66.66 | 33.33 | 75 | 14-16,18-20
376
361
--------------------------|---------|----------|---------|---------|--------------------------------
377
- ,ERROR: Coverage for lines (73.6 %) does not meet global threshold (101%)
362
+ ,ERROR: Coverage for lines (73.72 %) does not meet global threshold (101%)
378
363
ERROR: Coverage for branches (59.03%) does not meet global threshold (82%)
379
- ERROR: Coverage for statements (73.6 %) does not meet global threshold (95%)
364
+ ERROR: Coverage for statements (73.72 %) does not meet global threshold (95%)
380
365
"
381
366
`;
382
367
@@ -612,18 +597,3 @@ All files | 83.33 | 85.71 | 66.66 | 83.33 |
612
597
-----------|---------|----------|---------|---------|-------------------
613
598
,"
614
599
`;
615
-
616
- exports[`c8 ts-node reads source-map from cache, and applies to coverage 1`] = `
617
- " ,covered
618
- covered
619
- covered
620
- covered
621
- covered
622
- ------------------|---------|----------|---------|---------|-------------------
623
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
624
- ------------------|---------|----------|---------|---------|-------------------
625
- All files | 79.41 | 85.71 | 66.67 | 79.41 |
626
- ts-node-basic.ts | 79.41 | 85.71 | 66.67 | 79.41 | 15-17,29-32
627
- ------------------|---------|----------|---------|---------|-------------------
628
- ,"
629
- `;
0 commit comments