Cypress · Senior · Question 18 of 76
How should the balance between component and end-to-end tests be decided?
- 1Everything in E2E, since it's closest to real users
- 2Logic and states in component tests; key journeys in E2E
- 3Everything in component tests, since they're faster
Show the answer
Correct answer: Logic and states in component tests; key journeys in E2E
Explanation
Component tests cover many states quickly. E2E proves integration on critical paths.