Testing · Junior · Question 2 of 78
What does a unit test check?
- ✓Correct answer: A small isolated piece of code - a function, a hook or a component - on its own
- 2The whole application in a real browser
- 3How fast the server responds under load
Explanation
Unit tests are fast and pinpoint the failing place. Their limit: they don't show whether the pieces work together.