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
Then I create the GraphQLClient and try to do a request. I expect that to be intercepted by Jest, but it doesn't happen. This solution works with other fetch based code. I wonder if there's a trick or just doesn't work?
I can spy on the GraphQLClient.request but then I cannot test the behavior from my custom middleware.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't seem to get this working. Has anyone succeeded?
Then I create the GraphQLClient and try to do a request. I expect that to be intercepted by Jest, but it doesn't happen. This solution works with other fetch based code. I wonder if there's a trick or just doesn't work?
I can spy on the GraphQLClient.request but then I cannot test the behavior from my custom middleware.
Beta Was this translation helpful? Give feedback.
All reactions