vue-a11y/vue-axe

Console cleared even when `clearConsoleOnUpdate: false`

rudolfbyker opened this issue · 3 comments

I can't find a way to disable all console clears from this module. It's quite important for my development process that the console is NEVER cleared.

@rudolfbyker

Again, thanks for the contributions when using the vue-axe and reporting some improvements.
I released a v2.1.0 version right now.

  • I added the option auto to be able to disable the automatic verification (default: true);
Vue.use(VueAxe, { auto: false }) // Disables automatic verification
  • Now, when executing the $axe.run method, the clearConsole property by default will get the same value as the clearConsoleOnUpdate option (default: false);
// Not clear console logs
this.$axe.run() 
// Clearing the console logs
this.$axe.run({ clearConsole: true }) 

It's working well now! Thanks!

I thank you.