ValentinH / jest-fail-on-console

Utility to make jest tests fail when console.error() or any other methods are used
MIT License
141 stars 20 forks source link

Add Support for console.info & console.debug #16

Closed FlorianWendelborn closed 2 years ago

FlorianWendelborn commented 2 years ago

Would be great if it would be possible to optionally forbid all console output, including console.info and console.debug.

ValentinH commented 2 years ago

This can easily be added by copying the existing logic used for console.log. Would you like to do a PR?

FlorianWendelborn commented 2 years ago

@ValentinH done in #17.