Page 1 of 6
TDD with NextJS
Challenge 1 / 3
In the TDD workflow, the first step is to come up with a high-level integration test before programming the implementation (e.g., building React components or developing business logic).
Why start with an integration Test?
*
Answer #1
To ensure all unit tests are written before any code is implemented
To document the expected user journey behind the feature
To have a Definition of Ready (DoR) upfront
To skip the need for refactoring later
Because integration tests are easier to write than unit tests
Next