Vue · Middle · Question 71 of 75
When is shallowMount useful in Vue Test Utils?
- ✓Correct answer: To stub all child components and test one component in isolation
- 2To make tests run in a real browser
- 3To mount without props
Explanation
It isolates the unit, but heavy stubbing can hide integration bugs; many teams prefer mount with selected stubs.