Testing Next apps
Unanswered
Youssef posted this in #help-forum
YoussefOP
What is the best approach to test Next.js 13 apps?
The app routing documentation didn't mention anything related to that
I'll be grateful if someone sends some resources explaining that
Thanks in advance.
The app routing documentation didn't mention anything related to that
I'll be grateful if someone sends some resources explaining that
Thanks in advance.
4 Replies
YoussefOP
Anyone?
Try Playwright
Given Next.js 13 App Router architecture, e2e tests are the easier to setup, unit testing can be harder because the new features (RSC, server actions) create internal endpoints that you don't control directly, but that are triggered when using your UI
that's why e2e test might be better suited