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 initeslint-plugin-jest 2956 changes
Breaking changes 11
The rule now reports export all declarations.
The rule now bans optional chaining in tests.
The rule now ensures printf specifiers in .each titles are valid.
The rule now reports on export = usage.
The rule now reports ERR_PACKAGE_PATH_NOT_EXPORTED errors when validating mock module paths.
Support for ESLint v7 and ESLint v8.x prior to v8.57.0 is dropped.
Support is dropped for Node v16, v18, v21, v23, and v20.x prior to v20.12.0.
The styles config no longer includes jest/no-alias-methods, which is already included in the recommended config.
Support for @typescript-eslint v6 and v7 is dropped.
The unbound-method rule no longer exposes the docs.recommended property.
The unbound-method rule no longer exposes the docs.requiresTypeChecking property.
New APIs and options 10
Adds the checkThenables option for custom promises.
Adds the prefer-mock-return-shorthand rule.
Adds the valid-expect-with-promise rule.
A new rule is available to configure in eslint-plugin-jest.
Adds the no-unnecessary-assertion rule.
Adds the no-unneeded-async-expect-function ESLint rule.
A new rule is available for configuring ESLint checks.
A new rule is available for configuring ESLint checks.
Adds the valid-mock-module-path rule.
The rule can now be configured to ignore todo tests.
Performance 1
Parsing is cached for nodes that turn out not to be Jest function calls.
Behavior and default changes 5
The rule now allows expect assertions in beforeEach hooks.
Only report optional chaining when allowOptionalChaining is false.
The rule greatly improves checking whether mutable variables are used.
The rule now supports the toBeNaN matcher when checking for unnecessary assertions.
The rule supports basic uses of hasAssertions in beforeEach and afterEach hooks.
Tooling 2
Adds support for ESLint v10.
Added TypeScript as an optional peer dependency.
Fixes and other changes 27
The rule now handles parenthesized await arguments.
The rule now checks dynamic imports.
Most rules now account for optional chaining, improving how they handle code that uses it.
The rule no longer drops
onlyandskipfromeachchains.No longer crashes when expect is called without an argument.
The rule now accounts for optional chaining.
No longer crashes on a matcher without an argument.
No longer crashes on an expect chain without a value.
The no-export rule now handles literal property accessors.
The no-export rule now handles nested assignment chains.
The rule now checks for the exports global.
The rule no longer crashes on an expect chain without a value.
No longer crashes on an expect chain without a value.
No longer crashes on an expect chain without a value.
The rule no longer reports assignments to local variables named module.
Treats describe blocks as test files when applying the no-export rule.
The rule no longer reports virtual mocks.
TypeScript v7 is now allowed as a peer dependency.
The rule no longer reports unnecessary assertions for any and unknown types.
The rule now ignores use of update expressions.
The rule now ignores async implementations.
The rule no longer reports mutable implementations.
The rule now ignores inline use of jest.mocked(...).
The rule no longer crashes on it.todo.
The rule now ignores resolve and reject chains for now, avoiding unnecessary assertion reports on those chains.
The rule now checks that the current matcher is toHaveLength.
The rule's error message now uses the correct word.
eslint-plugin-jest 286 changes
Breaking changes 5
The flat/snapshot config was removed.
The no-if rule was removed in favor of no-conditional-in-test.
Node 19 is no longer supported.
Node v14 is no longer supported.
Support for version 5 of @typescript-eslint/eslint-plugin was dropped.
Fixes and other changes 1
ESLint 9 is now allowed as a peer dependency.
eslint-plugin-jest 276 changes
Breaking changes 5
ESLint 6 is no longer supported.
The no-jest-import rule has been removed.
The rule matches from the start of the expect chain, so each matcher and modifier permutation to restrict must be listed explicitly.
Node versions 12 and 17 are no longer supported.
Errors from the unbound-method base rule are no longer suppressed, including when project is not specified and @typescript-eslint/eslint-plugin is present.
Deprecations 1
The rule is now recommended because the aliased methods will be removed in the next major version of Jest.
eslint-plugin-jest 261 changes
Breaking changes 1
Support for version 4 was dropped.
eslint-plugin-jest 258 changes
Breaking changes 7
Support for ESLint 5 was dropped.
Renamed to
prefer-lowercase-title.The rule was removed.
Support for Node 10 and 15 was dropped.
The rule was removed.
The rule was removed.
Renamed to
valid-describe-callback.
New APIs and options 1
Added to the style ruleset and recommended for use.
eslint-plugin-jest 2411 changes
Breaking changes 7
Jasmine globals are no longer marked as such.
Renames no-test-callback to no-done-callback.
The rule now reports hooks using callbacks as well as tests.
The rule is now set to error in the recommended ruleset.
The rule now runs on all files, regardless of type.
The whitelistedSnapshots option has been removed.
Node 10 or later is now required.
Behavior and default changes 4
The rule is now included in the recommended ruleset.
The rule is now included in the recommended ruleset.
The rule is now included in the recommended ruleset.
The rule is now included in the recommended ruleset.
eslint-plugin-jest 238 changes
Breaking changes 6
The minimum supported Node.js version is now 8.
The rule was deleted; use valid-title instead.
Renamed the rule from require-tothrow-message to require-to-throw-message.
The rule was renamed to require-to-throw-message.
The rule no longer validates the title; use valid-title for that purpose.
Title validation moves from valid-describe to valid-title.
New APIs and options 1
The rule supports the ignoreTypeOfDescribeName option.
Behavior and default changes 1
New rules were added to the recommended config.