Mock Network When Using Next.js getServerSideProps Call

added by JavaScript Kicks
8/12/2021 10:46:37 AM

903 Views

How to run Next.js inside the Cypress plugin process to be able to stub network call made by the getServerSideProps call. Cypress has a great way to spy or stub network calls the application makes. Just use the cy.intercept command and have the full control over Ajax calls and static resources.


0 comments