Testing a custom error handler #374
Unanswered
allforabit
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, could you please share a full reproduction? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to write a test to ensure a custom error handler is calling a logging service when an error occurs by deliberately mocking a malformed response and thus triggering the error (and the custom error handler). This works in production code but for some reason tests using Angular testing library are throwing an uncaught error and seems to be bypassing the custom error handler. The handler is supplied as a provider similarly to the production config as follows:
Any help greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions