@@ -555,6 +555,11 @@ const customReporter = new Transform({
555
555
case ' test:diagnostic' :
556
556
callback (null , event .data .message );
557
557
break ;
558
+ case ' test:coverage' : {
559
+ const { totalLineCount } = event .data .summary .totals ;
560
+ callback (null , ` total line count: ${ totalLineCount} \n ` );
561
+ break ;
562
+ }
558
563
}
559
564
},
560
565
});
@@ -584,6 +589,11 @@ const customReporter = new Transform({
584
589
case ' test:diagnostic' :
585
590
callback (null , event .data .message );
586
591
break ;
592
+ case ' test:coverage' : {
593
+ const { totalLineCount } = event .data .summary .totals ;
594
+ callback (null , ` total line count: ${ totalLineCount} \n ` );
595
+ break ;
596
+ }
587
597
}
588
598
},
589
599
});
@@ -612,6 +622,11 @@ export default async function * customReporter(source) {
612
622
case ' test:diagnostic' :
613
623
yield ` ${ event .data .message } \n ` ;
614
624
break ;
625
+ case ' test:coverage' : {
626
+ const { totalLineCount } = event .data .summary .totals ;
627
+ yield ` total line count: ${ totalLineCount} \n ` ;
628
+ break ;
629
+ }
615
630
}
616
631
}
617
632
}
@@ -636,6 +651,11 @@ module.exports = async function * customReporter(source) {
636
651
case ' test:diagnostic' :
637
652
yield ` ${ event .data .message } \n ` ;
638
653
break ;
654
+ case ' test:coverage' : {
655
+ const { totalLineCount } = event .data .summary .totals ;
656
+ yield ` total line count: ${ totalLineCount} \n ` ;
657
+ break ;
658
+ }
639
659
}
640
660
}
641
661
};
0 commit comments