unstale

npm / eslint-plugin-jest-dom

eslint-plugin-jest-dom

What changed in eslint-plugin-jest-dom 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-26.

2 breaking2 new APIs and options2 behavior and defaults1 tooling7 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

eslint-plugin-jest-dom 513 changes

Breaking changes 1

  • Now a peer dependency; versions ^8.0.0 or ^9.0.0 are required.

    5.0.0release notes

New APIs and options 2

  • Mixed value assertions can now be replaced with this matcher.

    5.8.0release notes

  • Adds the prefer-pressed rule to eslint-plugin-jest-dom.

    5.7.0release notes

Behavior and default changes 2

  • The prefer-in-document rule now supports toBeNil and toBeNullable.

    5.10.0release notes

  • The rule supports aria-valuenow, allowing it to recommend the preferred value assertion for that attribute.

    5.8.0release notes

Tooling 1

Fixes and other changes 7

  • Only matches value and aria-valuenow in negated attribute checks.

    5.10.2release notes

  • The rule now reports on identifiers.

    5.10.1release notes

  • The prefer-class rule now supports toBeTrue and toBeFalse.

    5.9.1release notes

  • The prefer-empty rule no longer fixes a matcher when it has no argument.

    5.8.1release notes

  • Negated messages for banned attribute based rules now include the actual arguments.

    5.7.1release notes

  • No longer flags aria-checked="mixed".

    5.6.0release notes

  • Its fixer now always passes strings.

    5.6.0release notes

eslint-plugin-jest-dom 41 changes

Breaking changes 1

  • Node 10 is no longer supported; the required versions are ^12.22.0, ^14.17.0, or >=16.0.0.

    4.0.0release notes