jsdom vs happy-dom #1607
Replies: 2 comments 6 replies
-
happy-dom is a faster alternative, but it doesn't have some Web APIs. jsdom is more mature package. |
Beta Was this translation helpful? Give feedback.
-
I think a lot of us wish for a more lightweight DOM mock for quick unit tests. I was quite excited about I'm afraid, at this time, You wouldn't think it'd be all that difficult to replicate just the most essential DOM features in a more lightweight way - just a simpler package, with a smaller scope, without mocking the entire browser, but still accurate to the specs. But I dunno... the DOM specs are awful complex. 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hi there, I'm not sure if this is the place to ask this, but I'm a little confused by how there seems to be two different engines for rendering the dom, happy-dom and jsdom. Could someone share why some of the vitest examples seem to have both and roughly what their differences are?
Beta Was this translation helpful? Give feedback.
All reactions