How can I disable error logging to console in react-query v5 in my unit tests?

54 views Asked by At

Setting a custom logger was deprecated in v4 and is removed in v5, and I cannot disable console logging like before: (https://tanstack.com/query/v4/docs/react/guides/custom-logger) Now I see those errors in my test log. When I am testing error cases, it now looks like something went wrong in the logs, but everything is fine/intended.

I am using jest and react-testing-library.

Any ideas?

0

There are 0 answers