@@ -354,10 +354,12 @@ exports.getSupportFiles = (bsConfig, isA11y) => {
354354 let userSupportFile = null ;
355355 try {
356356 const completeCypressConfigFile = readCypressConfigFile ( bsConfig )
357+ console . log ( `Complete Cypress config file: ${ JSON . stringify ( completeCypressConfigFile ) } ` ) ;
357358 let cypressConfigFile = { } ;
358359 if ( ! utils . isUndefined ( completeCypressConfigFile ) ) {
359360 cypressConfigFile = ! utils . isUndefined ( completeCypressConfigFile . default ) ? completeCypressConfigFile . default : completeCypressConfigFile
360361 }
362+ console . log ( `Cypress config file: ${ JSON . stringify ( cypressConfigFile ) } ` ) ;
361363 userSupportFile = cypressConfigFile . e2e ?. supportFile !== null ? cypressConfigFile . e2e ?. supportFile : cypressConfigFile . component ?. supportFile !== null ? cypressConfigFile . component ?. supportFile : cypressConfigFile . supportFile ;
362364 if ( userSupportFile == false && extension ) {
363365 const supportFolderPath = path . join ( process . cwd ( ) , 'cypress' , 'support' ) ;
@@ -384,13 +386,16 @@ exports.getSupportFiles = (bsConfig, isA11y) => {
384386 supportFile = process . env [ envVar ] ;
385387 } else {
386388 /* Single file / glob pattern */
389+ console . log ( `Using user defined support file: ${ userSupportFile } ` ) ;
387390 supportFile = userSupportFile ;
388391 }
389392 } else if ( Array . isArray ( userSupportFile ) ) {
393+ console . log ( `Using user defined support files123: ${ userSupportFile } ` ) ;
390394 supportFile = userSupportFile [ 0 ] ;
391395 }
392396 } catch ( err ) { }
393397 if ( supportFile && supportFile [ 0 ] != '/' ) supportFile = '/' + supportFile ;
398+ console . log ( `Final support file: ${ supportFile } ` ) ;
394399 return {
395400 supportFile,
396401 cleanupParams : Object . keys ( cleanupParams ) . length ? cleanupParams : null
0 commit comments