Tool Open source
happy-dom is a JavaScript implementation of a web browser without a graphical user interface. It recreates DOM and browser APIs for running and testing browser-dependent code in Node.js and other lightweight environments.
Its supported features include custom elements and declarative shadow DOM, mutation observers, tree walkers, and the Fetch API. It works with testing and frontend ecosystems including Vitest, Bun, Jest, Testing Library, LitElement, Vue, React, Svelte, Angular, and web components.
happy-dom is distributed under the MIT License. The project is maintained by David Ortner and hosted on GitHub.
1 use taken from transcripts — each links to the moment in the video.
A JavaScript library that recreates browser behavior without a graphical browser interface. It provides DOM and browser APIs for running and testing browser-dependent code in Node.js and other lightweight environments.
1 in the library.