Will you write end-to-end tests, and what will you use?
End-to-end tests click through your app like a user would and catch breakages unit tests miss.
Unit tests and e2e tests catch different bugs
Unit tests check a function in isolation. End-to-end tests open a real browser and click through your app like a user, so they catch the form that submits but saves nothing.
Explain the difference between a unit test and an end-to-end test for a Next.js App Router project, and which failure modes each one misses.
Pick the flow that hurts most
On a two-week timeline, one focused e2e suite beats ten unit tests of things that never break. The flow that hurts most if it fails silently gets the first test.
Here is my app: [describe it]. Which single user flow would cause the most damage if it broke silently, and is that the one I should test first?
One focused end-to-end suite that clicks through your app like a user beats a pile of unit tests for things that never break.
Additional Resources
Explore these carefully curated resources to deepen your understanding and practice the concepts covered in this lesson.

