Testing · Senior · Question 27 of 75
How does happy-dom differ from jsdom?
- ✓Correct answer: It's a lighter, often faster DOM implementation, but less complete in some APIs
- 2It runs in a real browser
- 3It's jsdom with a different name
Explanation
Both are configured per project or per file via environment (// @vitest-environment happy-dom).