rsnext/examples/with-cypress
nasso c4d41255fe
Convert the Cypress config to ESM Module syntax (#39036)
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)
2022-07-28 05:39:47 +00:00
..
cypress Added workaround for --isolatedModules inside of configuration files (#39004) 2022-07-26 12:43:45 +00:00
pages chore(examples): Convert with-cypress example to TypeScript (#38818) 2022-07-21 16:40:51 +00:00
public Add with-cypress example (#27900) 2021-08-09 20:57:17 +00:00
styles Add with-cypress example (#27900) 2021-08-09 20:57:17 +00:00
.gitignore Update default gitignore templates (#39051) 2022-07-26 20:08:40 -05:00
cypress.config.ts Convert the Cypress config to ESM Module syntax (#39036) 2022-07-28 05:39:47 +00:00
next-env.d.ts chore(examples): Convert with-cypress example to TypeScript (#38818) 2022-07-21 16:40:51 +00:00
package.json chore(examples): Convert with-cypress example to TypeScript (#38818) 2022-07-21 16:40:51 +00:00
README.md docs(examples): improve DX while copying command to create new project (#38410) 2022-07-26 21:57:48 -05:00
tsconfig.json chore(examples): Convert with-cypress example to TypeScript (#38818) 2022-07-21 16:40:51 +00:00

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

Deploy with Vercel

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).