Stubbed response not available in application #27622
-
I have a test where I intercept, stub, and wait for a GraphQL request. In Cypress I can see that the request was intercepted and clicking on it logs the stubbed response, however, in the application the response is undefined. I'm stubbing a request generated using
When I click on the request from the Cypress logs, this is what it logs to the browser console. But when I log in the application code, the response is undefined.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay, this had nothing to do with Cypress. Apollo client requires the signature of the response to match the signature of the query, my stubbed responses didn't match. |
Beta Was this translation helpful? Give feedback.
Okay, this had nothing to do with Cypress. Apollo client requires the signature of the response to match the signature of the query, my stubbed responses didn't match.