lpelypenko / axe-html-reporter

Creates easy to read HTML file from axe-core® accessibility results object
MIT License
30 stars 22 forks source link

option to run off report file not created #23

Closed gemal closed 3 weeks ago

gemal commented 1 year ago

would be nice to be able to turn off this: Report file will not be created because user passed options.doNotCreateReportFile = true. Use HTML output of the function to create report file

do you accept pull requests?

mike-potter commented 1 year ago

Agree it would be nice to get rid of that message in the logs.

mike-potter commented 1 year ago

btw, for others that might run into this, here is the workaround I used:

{
  console.info = function () { }
  const reportHTML = createHtmlReport({ 
    results: AxeResults,
    options: {
      doNotCreateReportFile: true,
    }
  }); 
} 

This removes the console.info function within a subblock just for the reporter. (createHtmlReport is using console.info rather than console.log)

lpelypenko commented 3 weeks ago

@mike-potter and @gemal,

Thanks for the suggestion and sorry for the trouble.

Addressed requested message removal in new release https://github.com/lpelypenko/axe-html-reporter/releases/tag/v2.2.10. Closing request.