npm / eslint-plugin-testing-library
eslint-plugin-testing-library
What changed in eslint-plugin-testing-library 4 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-23.
30 breaking11 new APIs and options6 behavior and defaults3 tooling9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initeslint-plugin-testing-library 711 changes
Breaking changes 3
Removed pnpm from engines, so it is no longer listed as an engine requirement.
Requires ESLint ^8.57.0 or ^9.0.0; ESLint v9 is fully supported, and v8 remains compatible.
Requires Node ^18.18.0, ^20.9.0, or >=21.1.0 to use this release.
New APIs and options 1
Adds the prefer-user-event-setup ESLint rule.
Tooling 3
The plugin now supports ESLint v10.
The package is bundled in both CJS and ESM formats, allowing consumers to use either module format.
Adds full support for typescript-eslint v8.
Fixes and other changes 4
Detects userEvent when it is imported from a custom module.
Prevents duplicate errors for chained property access.
Exposes the correct version in plugin metadata.
The prefer-find-by autofix now keeps the assertion.
eslint-plugin-testing-library 610 changes
Breaking changes 9
Replaces await-fire-event, supports user-event, and includes a basic fixer with an improved fixer.
Renamed from await-async-query; update rule references in configuration.
Enabled by default in the DOM, Angular, and React configs.
Renamed from no-await-sync-query; update rule references in configuration.
Enabled by default in all configs.
Enabled by default in the React and Vue configs.
Enabled by default in the DOM config.
Renamed from no-render-in-setup; update rule references in configuration.
The rule was removed.
Behavior and default changes 1
Enables all debug methods by default in all configs and warns instead of reporting errors.
eslint-plugin-testing-library 510 changes
Breaking changes 10
Adds support for ESLint v8.
The rule previously called
no-debugis now calledno-debugging-utils.Enabled by default in the Angular, React & Vue configs.
Enabled by default in the React config.
Enabled by default in all configs.
Enabled by default in all configs.
Enabled by default in all configs.
Requires Node ^12.22.x, ^14.17.x, or >=16.x.
Enabled by default in all configs.
Enabled by default in all configs.
eslint-plugin-testing-library 428 changes
Breaking changes 8
The customQueryNames option has been removed from prefer-explicit-assert.
The minimum required ESLint version is 7.5; support for versions 5.x through 7.5 has been dropped.
The rule now reports type and keyboard methods with 0 delay.
The rule's severity changes from warning to error in the angular, react, and vue shareable configs.
This rule is enabled in the dom, angular, react, and vue shareable configs.
This rule is enabled in the dom, angular, react, and vue shareable configs.
The recommended shareable config has been renamed to dom.
The renderFunctions option has been removed from no-debug and no-render-in-setup.
New APIs and options 10
A new mechanism detects Testing Library imports, renders, utils, and queries to improve reporting.
A new rule is available to flag container usage.
A new rule is available to flag node access.
A new rule is available to flag promises in fireEvent calls.
A new rule is available to flag multiple assertions in waitFor.
A new rule is available to flag side effects inside waitFor.
A new rule is available to prefer user-event.
A new rule is available for render result naming conventions.
A new shared setting is available for configuring custom renders.
A new shared setting is available for configuring the utils module.
Behavior and default changes 5
This rule is enabled in the angular, react, and vue shareable configs.
This rule is enabled in the angular, react, and vue shareable configs.
This rule is enabled in the dom, angular, react, and vue shareable configs.
The rule now ignores queries coming from non-reportable renders and has an improved error message.
This rule is enabled in the angular, react, and vue shareable configs.
Fixes and other changes 5
The rule now detects wrappers around async queries properly.
The rule now detects wrappers around async utils properly.
The rule now detects wrappers around fire event properly.
The rule now detects wrappers around debug properly.
Rules detect Testing Library wrappers, variable references, custom imports, and renamed utils better and more consistently.