Vue · Senior · Question 48 of 75
What is the main trade-off between component tests and end-to-end tests?
- ✓Correct answer: Component tests are fast and isolated; E2E tests cover real browser integration but are slower and flakier
- 2E2E tests can't click buttons
- 3Component tests run only in production
Explanation
Most logic is covered by unit/component tests (Vitest + Vue Test Utils), with a smaller set of E2E tests (Playwright, Cypress) for critical user flows.