@@ -144,21 +144,6 @@ All files | 83.33 | 85.71 | 66.66 | 83.33 |
144144,"
145145` ;
146146
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-
162147exports [` c8 check-coverage --100 1` ] = `
163148",hey
164149i am a line of code
@@ -194,12 +179,12 @@ hey
194179--------------------------|---------|----------|---------|---------|--------------------------------
195180File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
196181--------------------------|---------|----------|---------|---------|--------------------------------
197- All files | 73.6 | 59.03 | 62.5 | 73.6 |
182+ All files | 73.72 | 59.03 | 62.5 | 73.72 |
198183 bin | 78.84 | 60 | 66.66 | 78.84 |
199184 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 |
201186 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
203188 report.js | 75.47 | 58.33 | 78.57 | 75.47 | ...251,278-279,285-287,308-313
204189 source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
205190 lib/commands | 41.44 | 66.66 | 16.66 | 41.44 |
@@ -209,9 +194,9 @@ All files | 73.6 | 59.03 | 62.5 | 73.6 |
209194 async.js | 100 | 100 | 100 | 100 |
210195 normal.js | 75 | 66.66 | 33.33 | 75 | 14-16,18-20
211196--------------------------|---------|----------|---------|---------|--------------------------------
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%)
213198ERROR: 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%)
215200"
216201` ;
217202
@@ -227,7 +212,7 @@ ERROR: Coverage for statements (80.48%) does not meet threshold (95%) for lib/co
227212ERROR: Coverage for lines (90%) does not meet threshold (101%) for lib/is-cjs-esm-bridge.js
228213ERROR: Coverage for branches (25%) does not meet threshold (82%) for lib/is-cjs-esm-bridge.js
229214ERROR: 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
231216ERROR: Coverage for branches (58.33%) does not meet threshold (82%) for lib/parse-args.js
232217ERROR: Coverage for lines (75.47%) does not meet threshold (101%) for lib/report.js
233218ERROR: 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
242227` ;
243228
244229exports [` 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%)
246231ERROR: Coverage for functions (66.66%) does not meet global threshold (100%)
247232ERROR: 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%)
249234"
250235` ;
251236
252237exports [` c8 check-coverage exits with 0 if coverage within threshold 1` ] = ` ",,"` ;
253238
254239exports [` 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%)
256241ERROR: 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%)
258243"
259244` ;
260245
@@ -337,12 +322,12 @@ exports[`c8 report generates report from existing temporary files 1`] = `
337322" ,--------------------------|---------|----------|---------|---------|--------------------------------
338323File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
339324--------------------------|---------|----------|---------|---------|--------------------------------
340- All files | 73.6 | 59.03 | 62.5 | 73.6 |
325+ All files | 73.72 | 59.03 | 62.5 | 73.72 |
341326 bin | 78.84 | 60 | 66.66 | 78.84 |
342327 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 |
344329 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
346331 report.js | 75.47 | 58.33 | 78.57 | 75.47 | ...251,278-279,285-287,308-313
347332 source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
348333 lib/commands | 41.44 | 66.66 | 16.66 | 41.44 |
@@ -359,12 +344,12 @@ exports[`c8 report supports --check-coverage, when generating reports 1`] = `
359344" ,--------------------------|---------|----------|---------|---------|--------------------------------
360345File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
361346--------------------------|---------|----------|---------|---------|--------------------------------
362- All files | 73.6 | 59.03 | 62.5 | 73.6 |
347+ All files | 73.72 | 59.03 | 62.5 | 73.72 |
363348 bin | 78.84 | 60 | 66.66 | 78.84 |
364349 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 |
366351 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
368353 report.js | 75.47 | 58.33 | 78.57 | 75.47 | ...251,278-279,285-287,308-313
369354 source-map-from-file.js | 45 | 100 | 0 | 45 | 39-50,52-67,69-77,81-98
370355 lib/commands | 41.44 | 66.66 | 16.66 | 41.44 |
@@ -374,9 +359,9 @@ All files | 73.6 | 59.03 | 62.5 | 73.6 |
374359 async.js | 100 | 100 | 100 | 100 |
375360 normal.js | 75 | 66.66 | 33.33 | 75 | 14-16,18-20
376361--------------------------|---------|----------|---------|---------|--------------------------------
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%)
378363ERROR: 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%)
380365"
381366`;
382367
@@ -612,18 +597,3 @@ All files | 83.33 | 85.71 | 66.66 | 83.33 |
612597-----------|---------|----------|---------|---------|-------------------
613598,"
614599`;
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