-
I recently raised a discussion (#5148) on how to prevent console errors during test runs that involve testing There seem to be two answers to that:
Whilst option 1. is okay, it's going to be relatively frequent noise in tests and feels like a work-around as opposed to a long-term solution. From the conversation in (#622), and specifically this comment, it seems as though the custom logger is marked as deprecated because there are no valid use-cases for it, but I think this is one and would like the decision to remove it to be reconsidered. For reference, here is a minimal reproduction that I added to my original discussion that now makes use of the custom logger. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
the
so starting with v5, we:
you can still use the custom logger in v4, but be prepared to just remove it in v5 because you won't be needing it. |
Beta Was this translation helpful? Give feedback.
the
custom logger
is deprecated because we have removed it in v5. The stance is:so starting with v5, we:
console.warn
orconsole.error
, but only in DEV mode.undefined
from yourqueryFn
, which is invalid.you can still use the custom logger in v4, but be prepared to just remove it in v5 because you won't be needing it.