File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import {
1313
1414const unitsWithoutCompanions = TestableUnit . getAllThatAreMissingTestCompanion ( ) ;
1515
16- if (
16+ if ( unitsWithoutCompanions === null ) {
17+ console . error ( 'Could not determine which units are missing test companions' ) ;
18+ process . exit ( 1 ) ;
19+ }
20+ else if (
1721 unitsWithoutCompanions . length === 0
1822) process . exit ( 0 ) ;
1923
@@ -24,5 +28,5 @@ const serializedUnitsWithoutCompanions = unitsWithoutCompanions
2428 . map ( $0 => format ( $0 ) . replace ( pathToProjectRoot , '' ) )
2529 . join ( '\n' ) ;
2630
27- console . error ( `The following units have no test companion:\n${ serializedUnitsWithoutCompanions } ` ) ;
31+ console . error ( `The following ${ unitsWithoutCompanions . length . toString ( ) } unit(s) have no test companion:\n${ serializedUnitsWithoutCompanions } ` ) ;
2832process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments