-
Hello, I have the following test that is meant to fail, as it tests that an error is thrown when a request is made to delete a user.
A I tried to reassign console.error in the call, but that didn't work. Is there a way to do what I'm trying to do? |
Beta Was this translation helpful? Give feedback.
Answered by
daffl
Sep 2, 2024
Replies: 1 comment
-
When using the Winston logger you can configure logger.ts to the log level you need according to the usage[ in tests. For example to remove all transports you'd do import { logger } from '../logger'
logger.clear()
// Or to temporarily disable logging
logger.level = false |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sokulski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the Winston logger you can configure logger.ts to the log level you need according to the usage[ in tests. For example to remove all transports you'd do