You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interceptors.responseError doesn't work with MockAgent
In version 7.0.0, the throwOnError option was removed. Here is indicated to use the interceptor interceptors.responseError to get the same behavior as before. This solution seems to work when calling a real endpoint. However, this does not work in the test environment using the MockAgent.
Reproducible By
Here a code example (an example extracted from a test case):
interceptors.responseError
doesn't work withMockAgent
In version
7.0.0
, thethrowOnError
option was removed.Here is indicated to use the interceptor
interceptors.responseError
to get the same behavior as before. This solution seems to work when calling a real endpoint. However, this does not work in the test environment using the MockAgent.Reproducible By
Here a code example (an example extracted from a test case):
Expected Behavior
The expected behavior is that an exception is raised, however this does not occur (it prints
undefined
as statusCode).Environment
20.18
7.1.0
The text was updated successfully, but these errors were encountered: