Back Issues/Search Home → Calendar → Archive → RSS → Subscribe → Services → Vendors → Blog → Current Issue → Popular → Newsletters (LinkedIn, Substack)

All issues › Volume 344, Issue 4 › IT News › Developer

Your Unit Tests Are Paying an Unnecessary DOM Tax

InfoWorld, Monday, November 23rd, 2026

Measurements show simulated DOMs like jsdom dominate component test time, and a new library called warpdom aims to cut it safely.

Sonu Kapoor argues that the simulated browser DOM behind most JavaScript component tests is a major and overlooked driver of CI time.

His tracing found a single getComputedStyle() call in jsdom triggering about 1,000 internal property reads, and swapping the DOM cut an Ant Design CI run from about 30 minutes to 6.7.

The faster happy-dom ran roughly 1.25x to 1.28x quicker than jsdom but changed test results in 12 of 13 suites, and even jsdom upgrades changed results in 13 of 23 projects.

He built warpdom, an open-source drop-in for Vitest and Jest designed to match jsdom results while running faster, with an optional non-isolated fast mode up to 9.6x faster on some suites, but he cautions that warpdom is pre-1.0 and that gains vary by suite.

more →  ·  More from Developer →