@@ -223,28 +223,23 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
223223 if ( ! supportFilesData . supportFile ) return ;
224224
225225 const isPattern = glob . hasMagic ( supportFilesData . supportFile ) ;
226- console . log ( `isPattern: ${ isPattern } , supportFile: ${ supportFilesData . supportFile } ` ) ;
227226 if ( ! isPattern ) {
228- console . log ( `Inside isPattern ` ) ;
227+ console . log ( `Using user defined support file: ${ supportFilesData . supportFile } ` ) ;
229228 try {
230229 file = process . cwd ( ) + supportFilesData . supportFile ;
231230 const defaultFileContent = fs . readFileSync ( file , { encoding : 'utf-8' } ) ;
232231 let cypressCommandEventListener = getAccessibilityCypressCommandEventListener ( path . extname ( file ) ) ;
233232 const alreadyIncludes = defaultFileContent . includes ( cypressCommandEventListener ) ;
234- console . log ( `alreadyIncludes: ${ alreadyIncludes } , file: ${ file } ` ) ;
235233 if ( ! alreadyIncludes ) {
236234 let newFileContent = defaultFileContent +
237235 '\n' +
238236 cypressCommandEventListener +
239237 '\n' ;
240- console . log ( `New file content for ${ file } : ${ newFileContent } ` ) ;
241238 fs . writeFileSync ( file , newFileContent , { encoding : 'utf-8' } ) ;
242239 supportFileContentMap [ file ] = supportFilesData . cleanupParams ? supportFilesData . cleanupParams : defaultFileContent ;
243240 }
244241 } 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 ) ;
248243 }
249244 }
250245
0 commit comments