@@ -223,28 +223,23 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
223
223
if ( ! supportFilesData . supportFile ) return ;
224
224
225
225
const isPattern = glob . hasMagic ( supportFilesData . supportFile ) ;
226
- console . log ( `isPattern: ${ isPattern } , supportFile: ${ supportFilesData . supportFile } ` ) ;
227
226
if ( ! isPattern ) {
228
- console . log ( `Inside isPattern ` ) ;
227
+ console . log ( `Using user defined support file: ${ supportFilesData . supportFile } ` ) ;
229
228
try {
230
229
file = process . cwd ( ) + supportFilesData . supportFile ;
231
230
const defaultFileContent = fs . readFileSync ( file , { encoding : 'utf-8' } ) ;
232
231
let cypressCommandEventListener = getAccessibilityCypressCommandEventListener ( path . extname ( file ) ) ;
233
232
const alreadyIncludes = defaultFileContent . includes ( cypressCommandEventListener ) ;
234
- console . log ( `alreadyIncludes: ${ alreadyIncludes } , file: ${ file } ` ) ;
235
233
if ( ! alreadyIncludes ) {
236
234
let newFileContent = defaultFileContent +
237
235
'\n' +
238
236
cypressCommandEventListener +
239
237
'\n' ;
240
- console . log ( `New file content for ${ file } : ${ newFileContent } ` ) ;
241
238
fs . writeFileSync ( file , newFileContent , { encoding : 'utf-8' } ) ;
242
239
supportFileContentMap [ file ] = supportFilesData . cleanupParams ? supportFilesData . cleanupParams : defaultFileContent ;
243
240
}
244
241
} catch ( e ) {
245
-
246
- logger . debug ( `Unable to modify file contents for ${ file } to set event listeners with error ${ e } ` , true , e ) ;
247
- console . log ( `Unable to modify file contents for ${ file } to set event listeners with error ${ e } ` , e ) ;
242
+ logger . debug ( `Unable to modify file contents for ${ file } to set event listeners with error ${ e } ` , true , e ) ;
248
243
}
249
244
}
250
245
0 commit comments