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
Is it possible to mock / stub requests sent from getInitialProps or getServerSideProps? I've tried using cy.route and cy.route2 but I don't think it works since it's expecting to mock through the network layer in the browser.
Not sure if there's a way to do this or if there's a recommended practice? If there is one, I'd be glad to add it as an example in this repo.
Thanks!
The text was updated successfully, but these errors were encountered:
Is it possible to mock / stub requests sent from
getInitialProps
orgetServerSideProps
? I've tried usingcy.route
andcy.route2
but I don't think it works since it's expecting to mock through the network layer in the browser.Not sure if there's a way to do this or if there's a recommended practice? If there is one, I'd be glad to add it as an example in this repo.
Thanks!
The text was updated successfully, but these errors were encountered: