unstale

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 init

@unstale/cli on npm

eslint-plugin-testing-library 711 changes

Breaking changes 3

  • Removed pnpm from engines, so it is no longer listed as an engine requirement.

    7.13.5release notes

  • Requires ESLint ^8.57.0 or ^9.0.0; ESLint v9 is fully supported, and v8 remains compatible.

    7.0.0release notes

  • Requires Node ^18.18.0, ^20.9.0, or >=21.1.0 to use this release.

    7.0.0release notes

New APIs and options 1

Tooling 3

  • The plugin now supports ESLint v10.

    7.16.0release notes

  • The package is bundled in both CJS and ESM formats, allowing consumers to use either module format.

    7.15.0release notes

  • Adds full support for typescript-eslint v8.

    7.0.0release notes

Fixes and other changes 4

  • Detects userEvent when it is imported from a custom module.

    7.16.2release notes

  • Prevents duplicate errors for chained property access.

    7.16.1release notes

  • Exposes the correct version in plugin metadata.

    7.15.2release notes

  • The prefer-find-by autofix now keeps the assertion.

    7.13.4release notes

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.

    6.0.0release notes

  • Renamed from await-async-query; update rule references in configuration.

    6.0.0release notes

  • Enabled by default in the DOM, Angular, and React configs.

    6.0.0release notes

  • Renamed from no-await-sync-query; update rule references in configuration.

    6.0.0release notes

  • Enabled by default in all configs.

    6.0.0release notes

  • Enabled by default in the React and Vue configs.

    6.0.0release notes

  • Enabled by default in the DOM config.

    6.0.0release notes

  • Renamed from no-render-in-setup; update rule references in configuration.

    6.0.0release notes

  • The rule was removed.

    6.0.0release notes

Behavior and default changes 1

  • Enables all debug methods by default in all configs and warns instead of reporting errors.

    6.0.0release notes

eslint-plugin-testing-library 510 changes

Breaking changes 10

eslint-plugin-testing-library 428 changes

Breaking changes 8

  • The customQueryNames option has been removed from prefer-explicit-assert.

    4.0.0release notes

  • The minimum required ESLint version is 7.5; support for versions 5.x through 7.5 has been dropped.

    4.0.0release notes

  • The rule now reports type and keyboard methods with 0 delay.

    4.0.0release notes

  • The rule's severity changes from warning to error in the angular, react, and vue shareable configs.

    4.0.0release notes

  • This rule is enabled in the dom, angular, react, and vue shareable configs.

    4.0.0release notes

  • This rule is enabled in the dom, angular, react, and vue shareable configs.

    4.0.0release notes

  • The recommended shareable config has been renamed to dom.

    4.0.0release notes

  • The renderFunctions option has been removed from no-debug and no-render-in-setup.

    4.0.0release notes

New APIs and options 10

  • A new mechanism detects Testing Library imports, renders, utils, and queries to improve reporting.

    4.0.0release notes

  • A new rule is available to flag container usage.

    4.0.0release notes

  • A new rule is available to flag node access.

    4.0.0release notes

  • A new rule is available to flag promises in fireEvent calls.

    4.0.0release notes

  • A new rule is available to flag multiple assertions in waitFor.

    4.0.0release notes

  • A new rule is available to flag side effects inside waitFor.

    4.0.0release notes

  • A new rule is available to prefer user-event.

    4.0.0release notes

  • A new rule is available for render result naming conventions.

    4.0.0release notes

  • A new shared setting is available for configuring custom renders.

    4.0.0release notes

  • A new shared setting is available for configuring the utils module.

    4.0.0release notes

Behavior and default changes 5

  • This rule is enabled in the angular, react, and vue shareable configs.

    4.0.0release notes

  • This rule is enabled in the angular, react, and vue shareable configs.

    4.0.0release notes

  • This rule is enabled in the dom, angular, react, and vue shareable configs.

    4.0.0release notes

  • The rule now ignores queries coming from non-reportable renders and has an improved error message.

    4.0.0release notes

  • This rule is enabled in the angular, react, and vue shareable configs.

    4.0.0release notes

Fixes and other changes 5

  • The rule now detects wrappers around async queries properly.

    4.0.0release notes

  • The rule now detects wrappers around async utils properly.

    4.0.0release notes

  • The rule now detects wrappers around fire event properly.

    4.0.0release notes

  • The rule now detects wrappers around debug properly.

    4.0.0release notes

  • Rules detect Testing Library wrappers, variable references, custom imports, and renamed utils better and more consistently.

    4.0.0release notes