@@ -354,10 +354,12 @@ exports.getSupportFiles = (bsConfig, isA11y) => {
354
354
let userSupportFile = null ;
355
355
try {
356
356
const completeCypressConfigFile = readCypressConfigFile ( bsConfig )
357
+ console . log ( `Complete Cypress config file: ${ JSON . stringify ( completeCypressConfigFile ) } ` ) ;
357
358
let cypressConfigFile = { } ;
358
359
if ( ! utils . isUndefined ( completeCypressConfigFile ) ) {
359
360
cypressConfigFile = ! utils . isUndefined ( completeCypressConfigFile . default ) ? completeCypressConfigFile . default : completeCypressConfigFile
360
361
}
362
+ console . log ( `Cypress config file: ${ JSON . stringify ( cypressConfigFile ) } ` ) ;
361
363
userSupportFile = cypressConfigFile . e2e ?. supportFile !== null ? cypressConfigFile . e2e ?. supportFile : cypressConfigFile . component ?. supportFile !== null ? cypressConfigFile . component ?. supportFile : cypressConfigFile . supportFile ;
362
364
if ( userSupportFile == false && extension ) {
363
365
const supportFolderPath = path . join ( process . cwd ( ) , 'cypress' , 'support' ) ;
@@ -384,13 +386,16 @@ exports.getSupportFiles = (bsConfig, isA11y) => {
384
386
supportFile = process . env [ envVar ] ;
385
387
} else {
386
388
/* Single file / glob pattern */
389
+ console . log ( `Using user defined support file: ${ userSupportFile } ` ) ;
387
390
supportFile = userSupportFile ;
388
391
}
389
392
} else if ( Array . isArray ( userSupportFile ) ) {
393
+ console . log ( `Using user defined support files123: ${ userSupportFile } ` ) ;
390
394
supportFile = userSupportFile [ 0 ] ;
391
395
}
392
396
} catch ( err ) { }
393
397
if ( supportFile && supportFile [ 0 ] != '/' ) supportFile = '/' + supportFile ;
398
+ console . log ( `Final support file: ${ supportFile } ` ) ;
394
399
return {
395
400
supportFile,
396
401
cleanupParams : Object . keys ( cleanupParams ) . length ? cleanupParams : null
0 commit comments