Mocking Next.js getInitialProps in _app

Viewed 179

I'm trying to find a way to mock Next.js's getInitialProps.

I'm currently using cypress to run E2E tests and can't find a way to mock the serverside fetch without spinning up a mock server for the fetch. I was curious if anyone has found a better approach?

Thank you!

0 Answers
Related