Testing a Next.js app #12694
Unanswered
leo-petrucci
asked this question in
Help
Replies: 1 comment 2 replies
-
The answer depends on what you want to test. If you want to test your integration with the CMS you might want to give a look at E2E tests with Cypress since the pages are dynamic you need to make sure to have at least one page in your CMS that is always available for tests purposes so they won't break every time the pages change. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I want to get more experience with testing, however I'm having trouble figuring out where to start.
I have a Headless CMS built with Next.js, the code is fairly simple, but I would like to be able to test if any of my pages return any errors automatically.
The vast majority of these pages are created with dynamic routing so I'm not entirely sure how to do this.
Is this the right way to test in Next.js? Does anyone have any info on how to do it?
Beta Was this translation helpful? Give feedback.
All reactions