Docs: Next.js & Cypress Out-of-the-Box Documentation #55281
Labels
Documentation
Related to Next.js' official documentation.
good first issue
Easy to fix issues, good for newcomers
locked
What is the improvement or update you wish to see?
The newest version of Next.js isn't compatible with Cypress out-of-the-box. You need to change the value of
"moduleResolution":
from"bundler"
to"node"
intsconfig.json
.This isn't reflected on the Next.js documentation https://nextjs.org/docs/pages/building-your-application/optimizing/testing, although is reflected in the
--example with-cypress with-cypress-app
https://github.com/vercel/next.js/blob/canary/examples/with-cypress/tsconfig.json. I also needed to add"baseUrl": "./"
to my"compilerOptions": { ... }
intsconfig.json
.Also worth mentioning, they recommend you use the script
"cypress: open": "cypress open"
and not `"cypress": "cypress open". https://docs.cypress.io/guides/getting-started/opening-the-appIs there any context that might help us understand?
I created the application yesterday using the latest versions of everything.
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/pages/building-your-application/optimizing/testing
The text was updated successfully, but these errors were encountered: