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 disableStackTrace option #35

Open isaiahshiner opened 1 year ago

isaiahshiner commented 1 year ago

Solves #30

Hello! Finally got around to a PR. I had some issues running this locally, but I think I've got everything right. I also guessed at the change in UX, this is rather brute force but it works well enough. Please let me know if there are any changes you'd like me to make or anything else you need.

isaiahshiner commented 1 year ago

I also somehow only just noticed the other PR for this issue 🤦

isaiahshiner commented 1 year ago

Ah yes, I did. I did a bit of research but couldn't find a way to do this either. I thought this was okay at least as a proof of concept.

ValentinH commented 1 year ago

Ah yes, I did. I did a bit of research but couldn't find a way to do this either. I thought this was okay at least as a proof of concept.

I think the author of the other PR found a way (didn't try it yet though), maybe you can use the same approach. 😊