File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,11 @@ const customReporter = new Transform({
557
557
case ' test:diagnostic' :
558
558
callback (null , event .data .message );
559
559
break ;
560
+ case ' test:coverage' : {
561
+ const { totalLineCount } = event .data .summary .totals ;
562
+ callback (null , ` total line count: ${ totalLineCount} \n ` );
563
+ break ;
564
+ }
560
565
}
561
566
},
562
567
});
@@ -586,6 +591,11 @@ const customReporter = new Transform({
586
591
case ' test:diagnostic' :
587
592
callback (null , event .data .message );
588
593
break ;
594
+ case ' test:coverage' : {
595
+ const { totalLineCount } = event .data .summary .totals ;
596
+ callback (null , ` total line count: ${ totalLineCount} \n ` );
597
+ break ;
598
+ }
589
599
}
590
600
},
591
601
});
@@ -614,6 +624,11 @@ export default async function * customReporter(source) {
614
624
case ' test:diagnostic' :
615
625
yield ` ${ event .data .message } \n ` ;
616
626
break ;
627
+ case ' test:coverage' : {
628
+ const { totalLineCount } = event .data .summary .totals ;
629
+ yield ` total line count: ${ totalLineCount} \n ` ;
630
+ break ;
631
+ }
617
632
}
618
633
}
619
634
}
@@ -638,6 +653,11 @@ module.exports = async function * customReporter(source) {
638
653
case ' test:diagnostic' :
639
654
yield ` ${ event .data .message } \n ` ;
640
655
break ;
656
+ case ' test:coverage' : {
657
+ const { totalLineCount } = event .data .summary .totals ;
658
+ yield ` total line count: ${ totalLineCount} \n ` ;
659
+ break ;
660
+ }
641
661
}
642
662
}
643
663
};
You can’t perform that action at this time.
0 commit comments