unstale

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

@unstale/cli 0.2.3 on npm

@testing-library/dom 103 changes

Breaking changes 2

  • The updated aria-query version changes various roles, which may affect role-based queries.

    10.0.0release notes

  • 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.

    10.0.0release notes

Fixes and other changes 1

  • Error messages are now set with defineProperty on the error object instead of being assigned directly.

    10.0.0release notes

@testing-library/dom 96 changes

Breaking changes 6

  • The collapseWhitespace option is no longer supported.

    9.0.0release notes

  • The exact option is no longer supported.

    9.0.0release notes

  • The normalizer option is no longer supported.

    9.0.0release notes

  • The role argument only accepts strings.

    9.0.0release notes

  • The trim option is no longer supported.

    9.0.0release notes

  • The minimum supported Node.js version is now 14.x; Node.js 12.x is no longer supported.

    9.0.0release notes

@testing-library/dom 86 changes

Breaking changes 5

  • Node 10 is no longer supported.

    8.0.0release notes

  • prettyDOM now ignores <script />, <style /> and comment nodes by default; provide a custom filterNode function to return to the old behavior.

    8.0.0release notes

  • 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.

    8.0.0release notes

  • The deprecated waitForElement API was removed.

    8.0.0release notes

  • The deprecated waitFormDOMChange API was removed.

    8.0.0release notes

Behavior and default changes 1