@@ -116,7 +116,10 @@ export default {
116116 testDir ,
117117 ) ;
118118
119+ // JSON output should still go to stdout (data output)
120+ // even in quiet mode when no --output is specified
119121 expect ( result . stdout , 'not to be empty' ) ;
122+ expect ( result . stdout , 'to match' , / " m e t a " : / ) ;
120123 expect ( result . stderr , 'to be empty' ) ;
121124 expect ( result . exitCode , 'to equal' , 0 ) ;
122125 } ) ;
@@ -135,7 +138,10 @@ export default {
135138 testDir ,
136139 ) ;
137140
138- expect ( result . stdout , 'to be empty' ) ;
141+ // CSV output should still go to stdout (data output)
142+ // even in quiet mode when no --output is specified
143+ expect ( result . stdout . length , 'to be greater than' , 0 ) ;
144+ expect ( result . stdout , 'to contain' , 'file' ) ;
139145 expect ( result . stderr , 'to be empty' ) ;
140146 expect ( result . exitCode , 'to equal' , 0 ) ;
141147 } ) ;
@@ -154,7 +160,11 @@ export default {
154160 testDir ,
155161 ) ;
156162
163+ // Data reporters (JSON/CSV) should output to stdout
164+ // even in quiet mode when no --output is specified
157165 expect ( result . stdout , 'not to be empty' ) ;
166+ // JSON output should be present
167+ expect ( result . stdout , 'to match' , / " m e t a " : / ) ;
158168 expect ( result . stderr , 'to be empty' ) ;
159169 expect ( result . exitCode , 'to equal' , 0 ) ;
160170 } ) ;
0 commit comments