Testing · Senior · Question 5 of 75
Why are the terms “unit” and “integration” test often ambiguous in discussions?
- ✓Correct answer: Teams define the “unit” differently - a function, a class, a module or a feature - so agree on what each level means in your project
- 2Because the terms are deprecated
- 3Because Jest and Vitest use different definitions
Explanation
Fowler distinguishes sociable vs solitary unit tests; what matters is speed, isolation and confidence, not the label.