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 configuration flag to immediately print from original console method #49

Closed SimonMueller closed 1 month ago

SimonMueller commented 1 month ago

See: https://github.com/ValentinH/jest-fail-on-console/issues/45

When there are other test failures jest swallows the console logs. In some cases e.g. when there is a log indicating why the test failed it is more time consuming to debug and find the reason as the log is not shown.

This PR introduces a flag which allows to show the console logs even though fail on console is enabled.

ValentinH commented 1 month ago

Released as https://github.com/ValentinH/jest-fail-on-console/releases/tag/v3.3.0