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

Thanks! #47

Closed jzaefferer closed 6 months ago

jzaefferer commented 6 months ago

Thanks for this project! It fills a gap left by jest + react. It even detected console logging in tests where I didn't expect it, since we've had console.log = jest.fn() overrides in those.

I've got one test where the react warnings are somehow not recognized. It's quite a complex one, so I've got no clue what could be the cause. If I ever figure out the issue and find something to report back, I'd create a new ticket for that.

Thanks again!