@@ -31,16 +31,16 @@ const flags = [
3131describe ( 'Coverage with source maps' , async ( ) => {
3232 await it ( 'should work with source maps' , async ( t ) => {
3333 const report = generateReport ( [
34- '# --------------------------------------------------------------' ,
35- '# file | line % | branch % | funcs % | uncovered lines' ,
36- '# --------------------------------------------------------------' ,
37- '# a.test.ts | 53.85 | 100.00 | 100.00 | 8-13' , // part of a bundle
38- '# b.test.ts | 55.56 | 100.00 | 100.00 | 1 7-9' , // part of a bundle
39- '# index.test.js | 71.43 | 66.67 | 100.00 | 6-7' , // no source map
40- '# stdin.test.ts | 57.14 | 100.00 | 100.00 | 4-6' , // Source map without original file
41- '# --------------------------------------------------------------' ,
42- '# all files | 58.33 | 87.50 | 100.00 | ' ,
43- '# --------------------------------------------------------------' ,
34+ '# ------------------------------------------------------------------------ ' ,
35+ '# file | stmts % | line % | branch % | funcs % | uncovered lines' ,
36+ '# ------------------------------------------------------------------------ ' ,
37+ '# a.test.ts | 37.50 | 53.85 | 100.00 | 100.00 | 8-13' , // part of a bundle
38+ '# b.test.ts | 28.57 | 55.56 | 100.00 | 100.00 | 1 7-9' , // part of a bundle
39+ '# index.test.js | 80.00 | 71.43 | 66.67 | 100.00 | 6-7' , // no source map
40+ '# stdin.test.ts | 100.00 | 57.14 | 100.00 | 100.00 | 4-6' , // Source map without original file
41+ '# ------------------------------------------------------------------------ ' ,
42+ '# all files | 45.00 | 58.33 | 87.50 | 100.00 | ' ,
43+ '# ------------------------------------------------------------------------ ' ,
4444 ] ) ;
4545
4646 const spawned = await common . spawnPromisified ( process . execPath , flags , {
@@ -54,15 +54,15 @@ describe('Coverage with source maps', async () => {
5454
5555 await it ( 'should only work with --enable-source-maps' , async ( t ) => {
5656 const report = generateReport ( [
57- '# --------------------------------------------------------------' ,
58- '# file | line % | branch % | funcs % | uncovered lines' ,
59- '# --------------------------------------------------------------' ,
60- '# a.test.mjs | 100.00 | 100.00 | 100.00 | ' ,
61- '# index.test.js | 71.43 | 66.67 | 100.00 | 6-7' ,
62- '# stdin.test.js | 100.00 | 100.00 | 100.00 | ' ,
63- '# --------------------------------------------------------------' ,
64- '# all files | 85.71 | 87.50 | 100.00 | ' ,
65- '# --------------------------------------------------------------' ,
57+ '# ------------------------------------------------------------------------ ' ,
58+ '# file | stmts % | line % | branch % | funcs % | uncovered lines' ,
59+ '# ------------------------------------------------------------------------ ' ,
60+ '# a.test.mjs | 100.00 | 100.00 | 100.00 | 100.00 | ' ,
61+ '# index.test.js | 80.00 | 71.43 | 66.67 | 100.00 | 6-7' ,
62+ '# stdin.test.js | 100.00 | 100.00 | 100.00 | 100.00 | ' ,
63+ '# ------------------------------------------------------------------------ ' ,
64+ '# all files | 92.31 | 85.71 | 87.50 | 100.00 | ' ,
65+ '# ------------------------------------------------------------------------ ' ,
6666 ] ) ;
6767
6868 const spawned = await common . spawnPromisified ( process . execPath , flags . slice ( 1 ) , {
@@ -75,18 +75,18 @@ describe('Coverage with source maps', async () => {
7575
7676 await it ( 'properly accounts for line endings in source maps' , async ( t ) => {
7777 const report = generateReport ( [
78- '# ------------------------------------------------------------------' ,
79- '# file | line % | branch % | funcs % | uncovered lines' ,
80- '# ------------------------------------------------------------------' ,
81- '# test | | | | ' ,
82- '# fixtures | | | | ' ,
83- '# test-runner | | | | ' ,
84- '# source-maps | | | | ' ,
85- '# line-lengths | | | | ' ,
86- '# index.ts | 100.00 | 100.00 | 100.00 | ' ,
87- '# ------------------------------------------------------------------' ,
88- '# all files | 100.00 | 100.00 | 100.00 | ' ,
89- '# ------------------------------------------------------------------' ,
78+ '# ---------------------------------------------------------------------------- ' ,
79+ '# file | stmts % | line % | branch % | funcs % | uncovered lines' ,
80+ '# ---------------------------------------------------------------------------- ' ,
81+ '# test | | | | | ' ,
82+ '# fixtures | | | | | ' ,
83+ '# test-runner | | | | | ' ,
84+ '# source-maps | | | | | ' ,
85+ '# line-lengths | | | | | ' ,
86+ '# index.ts | 100.00 | 100.00 | 100.00 | 100.00 | ' ,
87+ '# ---------------------------------------------------------------------------- ' ,
88+ '# all files | 100.00 | 100.00 | 100.00 | 100.00 | ' ,
89+ '# ---------------------------------------------------------------------------- ' ,
9090 ] ) ;
9191
9292 const spawned = await common . spawnPromisified ( process . execPath , [
0 commit comments