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
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
I'm using
apollo-link-error
in combination withapollo-link-http
andapollo-link
. I'm having issue when testing mywithApollo
function.When running the code in the browser, I get the desired effects - successful logging to Sentry when it's supposed to only.
When running the jest test which worked successfully before adding the
onError
middleware, I received a terminating link warning.As far as I was aware, onError is not a terminating link - so I am unsure why I receive this warning and furthermore why this fails my unaltered test?
In my test I am mocking out
apollo-link-error
in__mocks__
like so:Initially I was using a standard
jest.mock('apollo-link-error')
but realised I would need to be more specific.Expected Behavior
To raise no warning message and for
onError
to produce a non-terminating linkActual Behavior
A simple reproduction
The structure of my code is:
The text was updated successfully, but these errors were encountered: