unstale

npm / eslint-plugin-jest

eslint-plugin-jest

What changed in eslint-plugin-jest 23 to 29, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-27.

42 breaking1 deprecations12 new APIs and options1 performance10 behavior and defaults2 tooling28 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 2956 changes

Breaking changes 11

  • The rule now reports export all declarations.

    29.16.11release notes

  • The rule now bans optional chaining in tests.

    29.14.0release notes

  • The rule now ensures printf specifiers in .each titles are valid.

    29.10.0release notes

  • The rule now reports on export = usage.

    29.2.2release notes

  • The rule now reports ERR_PACKAGE_PATH_NOT_EXPORTED errors when validating mock module paths.

    29.2.1release notes

  • Support for ESLint v7 and ESLint v8.x prior to v8.57.0 is dropped.

    29.0.0release notes

  • Support is dropped for Node v16, v18, v21, v23, and v20.x prior to v20.12.0.

    29.0.0release notes

  • The styles config no longer includes jest/no-alias-methods, which is already included in the recommended config.

    29.0.0release notes

  • Support for @typescript-eslint v6 and v7 is dropped.

    29.0.0release notes

  • The unbound-method rule no longer exposes the docs.recommended property.

    29.0.0release notes

  • The unbound-method rule no longer exposes the docs.requiresTypeChecking property.

    29.0.0release notes

New APIs and options 10

  • Adds the checkThenables option for custom promises.

    29.16.0release notes

  • Adds the prefer-mock-return-shorthand rule.

    29.11.0release notes

  • Adds the valid-expect-with-promise rule.

    29.8.0release notes

  • A new rule is available to configure in eslint-plugin-jest.

    29.7.0release notes

  • Adds the no-unnecessary-assertion rule.

    29.6.0release notes

  • Adds the no-unneeded-async-expect-function ESLint rule.

    29.5.0release notes

  • A new rule is available for configuring ESLint checks.

    29.4.0release notes

  • A new rule is available for configuring ESLint checks.

    29.4.0release notes

  • Adds the valid-mock-module-path rule.

    29.2.0release notes

  • The rule can now be configured to ignore todo tests.

    29.1.0release notes

Performance 1

  • Parsing is cached for nodes that turn out not to be Jest function calls.

    29.16.9release notes

Behavior and default changes 5

  • The rule now allows expect assertions in beforeEach hooks.

    29.17.0release notes

  • Only report optional chaining when allowOptionalChaining is false.

    29.15.0release notes

  • The rule greatly improves checking whether mutable variables are used.

    29.12.0release notes

  • The rule now supports the toBeNaN matcher when checking for unnecessary assertions.

    29.9.0release notes

  • The rule supports basic uses of hasAssertions in beforeEach and afterEach hooks.

    29.3.0release notes

Tooling 2

Fixes and other changes 27

  • The rule now handles parenthesized await arguments.

    29.17.1release notes

  • The rule now checks dynamic imports.

    29.16.11release notes

  • Most rules now account for optional chaining, improving how they handle code that uses it.

    29.16.10release notes

  • The rule no longer drops only and skip from each chains.

    29.16.9release notes

  • No longer crashes when expect is called without an argument.

    29.16.8release notes

  • The rule now accounts for optional chaining.

    29.16.7release notes

  • No longer crashes on a matcher without an argument.

    29.16.6release notes

  • No longer crashes on an expect chain without a value.

    29.16.6release notes

  • The no-export rule now handles literal property accessors.

    29.16.5release notes

  • The no-export rule now handles nested assignment chains.

    29.16.4release notes

  • The rule now checks for the exports global.

    29.16.3release notes

  • The rule no longer crashes on an expect chain without a value.

    29.16.2release notes

  • No longer crashes on an expect chain without a value.

    29.16.1release notes

  • No longer crashes on an expect chain without a value.

    29.16.1release notes

  • The rule no longer reports assignments to local variables named module.

    29.15.4release notes

  • Treats describe blocks as test files when applying the no-export rule.

    29.15.3release notes

  • The rule no longer reports virtual mocks.

    29.15.2release notes

  • TypeScript v7 is now allowed as a peer dependency.

    29.15.1release notesrelease notes

  • The rule no longer reports unnecessary assertions for any and unknown types.

    29.12.1release notes

  • The rule now ignores use of update expressions.

    29.11.4release notes

  • The rule now ignores async implementations.

    29.11.3release notes

  • The rule no longer reports mutable implementations.

    29.11.2release notes

  • The rule now ignores inline use of jest.mocked(...).

    29.11.1release notes

  • The rule no longer crashes on it.todo.

    29.10.1release notes

  • The rule now ignores resolve and reject chains for now, avoiding unnecessary assertion reports on those chains.

    29.6.1release notes

  • The rule now checks that the current matcher is toHaveLength.

    29.4.1release notes

  • The rule's error message now uses the correct word.

    29.2.3release notes

eslint-plugin-jest 286 changes

Breaking changes 5

  • The flat/snapshot config was removed.

    28.0.0release notes

  • The no-if rule was removed in favor of no-conditional-in-test.

    28.0.0release notes

  • Node 19 is no longer supported.

    28.0.0release notes

  • Node v14 is no longer supported.

    28.0.0release notes

  • Support for version 5 of @typescript-eslint/eslint-plugin was dropped.

    28.0.0release notes

Fixes and other changes 1

eslint-plugin-jest 276 changes

Breaking changes 5

  • ESLint 6 is no longer supported.

    27.0.0release notes

  • The no-jest-import rule has been removed.

    27.0.0release notes

  • The rule matches from the start of the expect chain, so each matcher and modifier permutation to restrict must be listed explicitly.

    27.0.0release notes

  • Node versions 12 and 17 are no longer supported.

    27.0.0release notes

  • Errors from the unbound-method base rule are no longer suppressed, including when project is not specified and @typescript-eslint/eslint-plugin is present.

    27.0.0release notes

Deprecations 1

  • The rule is now recommended because the aliased methods will be removed in the next major version of Jest.

    27.0.0release notes

eslint-plugin-jest 261 changes

Breaking changes 1

eslint-plugin-jest 258 changes

Breaking changes 7

New APIs and options 1

  • Added to the style ruleset and recommended for use.

    25.0.0release notes

eslint-plugin-jest 2411 changes

Breaking changes 7

  • Jasmine globals are no longer marked as such.

    24.0.0release notes

  • Renames no-test-callback to no-done-callback.

    24.0.0release notes

  • The rule now reports hooks using callbacks as well as tests.

    24.0.0release notes

  • The rule is now set to error in the recommended ruleset.

    24.0.0release notes

  • The rule now runs on all files, regardless of type.

    24.0.0release notes

  • The whitelistedSnapshots option has been removed.

    24.0.0release notes

  • Node 10 or later is now required.

    24.0.0release notes

Behavior and default changes 4

  • The rule is now included in the recommended ruleset.

    24.0.0release notes

  • The rule is now included in the recommended ruleset.

    24.0.0release notes

  • The rule is now included in the recommended ruleset.

    24.0.0release notes

  • The rule is now included in the recommended ruleset.

    24.0.0release notes

eslint-plugin-jest 238 changes

Breaking changes 6

  • The minimum supported Node.js version is now 8.

    23.0.0release notes

  • The rule was deleted; use valid-title instead.

    23.0.0release notes

  • Renamed the rule from require-tothrow-message to require-to-throw-message.

    23.0.0release notes

  • The rule was renamed to require-to-throw-message.

    23.0.0release notes

  • The rule no longer validates the title; use valid-title for that purpose.

    23.0.0release notes

  • Title validation moves from valid-describe to valid-title.

    23.0.0release notes

New APIs and options 1

  • The rule supports the ignoreTypeOfDescribeName option.

    23.0.0release notes

Behavior and default changes 1

  • New rules were added to the recommended config.

    23.0.0release notes