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 {
13
13
14
14
const unitsWithoutCompanions = TestableUnit . getAllThatAreMissingTestCompanion ( ) ;
15
15
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 (
17
21
unitsWithoutCompanions . length === 0
18
22
) process . exit ( 0 ) ;
19
23
@@ -24,5 +28,5 @@ const serializedUnitsWithoutCompanions = unitsWithoutCompanions
24
28
. map ( $0 => format ( $0 ) . replace ( pathToProjectRoot , '' ) )
25
29
. join ( '\n' ) ;
26
30
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 } ` ) ;
28
32
process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments