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
ApolloTestingController doesn't seem to be triggering an HttpInterceptor I have
To Reproduce
I have an HttpInterceptor declared like so:
export class ErrorHandlerInterceptor implements HttpInterceptor {
and I have call on my code to apollo like this:
import { Apollo } from "apollo-angular"
(...)
constructor(private readonly apollo: Apollo) {}
(...)
return this.apollo.mutate<T>({ mutation, variables })
on my test I make a call to this.apollo.mutate<T>({ mutation, variables }).
And to simulate the call, the only way I could find that triggers the HttpInterceptor is to make a dummy call to an endpoint using HttpClient:
Describe the bug
ApolloTestingController
doesn't seem to be triggering anHttpInterceptor
I haveTo Reproduce
I have an
HttpInterceptor
declared like so:and I have call on my code to apollo like this:
on my test I make a call to
this.apollo.mutate<T>({ mutation, variables })
.And to simulate the call, the only way I could find that triggers the
HttpInterceptor
is to make a dummy call to an endpoint usingHttpClient
:Expected behavior
From my point of view
ApolloTestingController
should triggerHttpInterceptor
.Environment:
The text was updated successfully, but these errors were encountered: