Tool Open source

happy-dom

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.

View repository Mentioned in 1 video ↓

Overview

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.

What happy-dom is used for

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.

Videos mentioning happy-dom

1 in the library.