QA Fundamentals · Junior · Question 12 of 75
What does a unit (component) test check?
- 1A small piece of code, such as a function, in isolation
- 2The whole application running in a real browser
- 3How a real user feels about the new design
Show the answer
Correct answer: A small piece of code, such as a function, in isolation
Explanation
Unit tests are fast and pinpoint failures. Dependencies are often replaced with test doubles so that only the unit itself is checked.