c4d41255fe
This seems to be what is recommended by the Cypress documentation: https://docs.cypress.io/guides/references/configuration ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint` - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) |
||
---|---|---|
.. | ||
cypress | ||
pages | ||
public | ||
styles | ||
.gitignore | ||
cypress.config.ts | ||
next-env.d.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
Next.js + Cypress
This example shows how to configure Cypress to work with Next.js.
Deploy your own
Deploy the example using Vercel or preview live with StackBlitz
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-cypress with-cypress-app
yarn create next-app --example with-cypress with-cypress-app
pnpm create next-app --example with-cypress with-cypress-app
Deploy it to the cloud with Vercel (Documentation).