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 initeslint-plugin-jest-dom 513 changes
Breaking changes 1
Now a peer dependency; versions ^8.0.0 or ^9.0.0 are required.
New APIs and options 2
Mixed value assertions can now be replaced with this matcher.
Adds the prefer-pressed rule to eslint-plugin-jest-dom.
Behavior and default changes 2
The prefer-in-document rule now supports toBeNil and toBeNullable.
The rule supports aria-valuenow, allowing it to recommend the preferred value assertion for that attribute.
Tooling 1
The plugin now supports ESLint v10.
Fixes and other changes 7
Only matches value and aria-valuenow in negated attribute checks.
The rule now reports on identifiers.
The prefer-class rule now supports toBeTrue and toBeFalse.
The prefer-empty rule no longer fixes a matcher when it has no argument.
Negated messages for banned attribute based rules now include the actual arguments.
No longer flags aria-checked="mixed".
Its fixer now always passes strings.
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.