File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ internals.options = function () {
346
346
verbose : false ,
347
347
paths : [ 'test' ] ,
348
348
coverage : false ,
349
- debug : true ,
349
+ debug : false ,
350
350
dry : false ,
351
351
environment : 'test' ,
352
352
flat : false ,
Original file line number Diff line number Diff line change @@ -203,6 +203,21 @@ describe('CLI', () => {
203
203
} ) ;
204
204
} ) ;
205
205
206
+ it ( 'debug mode is disabled by default' , ( done ) => {
207
+
208
+ RunCli ( [ 'test/cli_error/failure.js' ] , ( error , result ) => {
209
+
210
+ if ( error ) {
211
+ done ( error ) ;
212
+ }
213
+
214
+ expect ( result . errorOutput ) . to . equal ( '' ) ;
215
+ expect ( result . code ) . to . equal ( 1 ) ;
216
+ expect ( result . combinedOutput ) . to . not . contain ( 'Test script errors:' ) ;
217
+ done ( ) ;
218
+ } ) ;
219
+ } ) ;
220
+
206
221
it ( 'shows the help (-h)' , ( done ) => {
207
222
208
223
RunCli ( [ '-h' ] , ( error , result ) => {
You can’t perform that action at this time.
0 commit comments