Testing · Junior · Question 13 of 78
What are Jest and Vitest?
- ✓Correct answer: JavaScript test runners: they find test files, run them and report results, with assertions and mocks built in
- 2Libraries for rendering React components in the browser
- 3Tools for E2E testing in a real browser
Explanation
Vitest is built on Vite and reuses its config and transforms; its API is largely compatible with Jest (describe, it, expect, mocks).