npm / @testing-library/dom
@testing-library/dom
What changed in @testing-library/dom 8 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
13 breaking1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@testing-library/dom 103 changes
Breaking changes 2
The updated aria-query version changes various roles, which may affect role-based queries.
Node.js 18.0 is now the minimum supported version; support for Node.js 14.x and 16.x is dropped, and Node.js 20.x is supported.
Fixes and other changes 1
Error messages are now set with defineProperty on the error object instead of being assigned directly.
@testing-library/dom 96 changes
Breaking changes 6
The collapseWhitespace option is no longer supported.
The exact option is no longer supported.
The normalizer option is no longer supported.
The role argument only accepts strings.
The trim option is no longer supported.
The minimum supported Node.js version is now 14.x; Node.js 12.x is no longer supported.
@testing-library/dom 86 changes
Breaking changes 5
Node 10 is no longer supported.
prettyDOM now ignores <script />, <style /> and comment nodes by default; provide a custom filterNode function to return to the old behavior.
The timeout now uses the same clock as interval, which may be mocked out; use Number.POSITIVE_INFINITY for the old behavior and rely on the test runner to timeout using real timers.
The deprecated waitForElement API was removed.
The deprecated waitFormDOMChange API was removed.
Behavior and default changes 1
If using Jest fake timers, use modern timers.