Design Patterns · Middle · Question 40 of 75
What is the "test pyramid"?
- ✓Correct answer: Many fast unit tests, fewer integration tests and very few e2e tests
- 2The order of running tests: e2e first, then integration, then unit
- 3A hierarchy of responsibility: QA → developer → team lead
Explanation
Lower levels are cheap and fast; upper ones are closer to reality but slow and brittle. On the frontend, the "trophy" variant is popular, emphasizing component integration tests (Testing Library).