jest breaking changes
Updated December 4, 2026
On this page
Latest version 30.5.2, released September 18, 2026. Source repository
Its 30.0.0 release drops Node.js 14, 16, 19, 21 and 23. Node.js end of life dates.
- From 29.7.0 to 30.5.1: 124 breaking changes in 9 versions.
- From 0.5.0 to 30.5.1: 442 breaking changes in 39 versions.
jest 30.5.1 breaking changes
- Behavior changed
coverageReporters
The coverageReporters option in a project config is no longer silently ignored; Jest now warns about it. Move it to the global config. github.com - Behavior changed
coverageThreshold
The coverageThreshold option in a project config is no longer dropped silently; Jest now warns about it. Move it to the global config. github.com - Behavior changed
cwd
The cwd option in a project config is no longer silently ignored; Jest now warns about it. Move it to the global config. github.com - Behavior changed
maxWorkers
The maxWorkers option in a project config is no longer dropped silently; Jest now warns about it. Move it to the global config. github.com - Behavior changed
reporters
The reporters option in a project config is no longer silently ignored; Jest now warns about it. Move it to the global config. github.com - Behavior changed
runnerOptions
The runnerOptions option in a project config is no longer silently ignored; Jest now warns about it. Move it to the global config. github.com - Behavior changed
workerIdleMemoryLimit
The workerIdleMemoryLimit option in a project config is no longer silently ignored; Jest now warns about it. Move it to the global config. github.com
jest 30.5.0 breaking changes
- Behavior changed
The default resolver now follows Node's preserve-symlinks setting, so module paths under symlinked directories may resolve differently when that setting is on. github.com - Behavior changed
jest.isolateModules
A module mock first imported inside jest.isolateModules or isolateModulesAsync no longer stays available after the block ends. github.com - Behavior changed
moduleFileExtensions
Watched files are matched on their full extension, so a setting of ['js'] no longer picks up .mjs files. github.com - Behavior changed
moduleNameMapper
moduleNameMapper now applies to both fs and node:fs style core module specifiers. Mappings that only matched one spelling may now resolve differently. github.com
jest 30.4.0 breaking changes
- Behavior changed
Calling import() after the Jest environment has been torn down now throws an error, where it previously did not. Tests that relied on the silent behavior must handle the error. github.com - Behavior changed
require.resolve
require.resolve() called with the paths option now applies moduleNameMapper, so it can resolve to different files than before. Check mapped module paths in tests that use this option. github.com
jest 30.0.0 breaking changes
- Removed
The minimum supported TypeScript version is now 5.4. github.com - Removed
Node.js versions 14, 16, 19, 21 and 23 are no longer supported, so upgrade Node.js before using this release. github.com - Removed
Jest 30 requires Node.js 18.x or later, so older Node versions must be upgraded before upgrading Jest. jestjs.io - Removed
Jest's internal modules are bundled, so deep imports such as jest-runner build paths no longer exist; use public APIs. jestjs.io - Removed
--init
The --init argument was removed, so use the alternative setup method instead. github.com - Removed
expect(fn).lastCalledWith
Use the primary matcher name instead; the behavior is identical. jestjs.io - Removed
expect(fn).lastReturnedWith
Use the primary matcher name instead; the behavior is identical. jestjs.io - Removed
expect(fn).nthCalledWith
Use the primary matcher name instead; the behavior is identical. jestjs.io - Removed
expect(fn).nthReturnedWith
Use the primary matcher name instead; the behavior is identical. jestjs.io - Removed
expect(fn).toBeCalled
Use the primary matcher name instead; the behavior is identical. jestjs.io
And 61 more in this version. Sign up to see every change
jest 30.0.0-alpha.6 breaking changes
- Removed
Jest no longer supports these Node.js versions. Upgrade Node.js before using this release. github.com - Behavior changed
CalledWith
Type checks on CalledWith assertions are stricter, which can break type-checked tests. github.com
jest 30.0.0-alpha.5 breaking changes
- Behavior changed
watch
Callers of watch must pass testPathPatterns as a list of patterns. github.com
Older versions
34 older versions, each with its first changes. Sign up to see every change
Show 34 older versions
jest 30.0.0-alpha.3 breaking changes
- Behavior changed
Flags that need an argument now fail validation when none is given. github.com - Behavior changed
The glob dependency moved to a new major version, which may change matching behavior. github.com
And 1 more in this version.
jest 30.0.0-alpha.2 breaking changes
- Removed
lastCalledWith
Old call-assertion aliases are removed. Use the toHaveBeenCalled-style matchers instead. github.com - Removed
lastReturnedWith
Old call-assertion aliases are removed. Use the toHaveBeenCalled-style matchers instead. github.com
And 13 more in this version.
jest 30.0.0-alpha.1 breaking changes
- Removed
Jest no longer supports these Node.js versions. Upgrade Node.js before using this release. github.com - Removed
The minimum supported TypeScript version is now 5.0. Upgrade TypeScript before using this release. github.com
And 17 more in this version.
jest 29.7.0 breaking changes
- Behavior changed
moduleNameMapper
Unmatched capture groups in moduleNameMapper now expand to an empty string rather than undefined. Code that relied on the undefined value may need to check for an empty string instead. github.com
jest 29.6.3 breaking changes
- Default changed
Watch mode runs tests in worker processes by default instead of in-band, which can change how tests share global state. Users who depended on in-band execution in watch mode should configure workers explicitly. github.com
jest 29.4.3 breaking changes
- Behavior changed
jest.resetAllMocks
jest.resetAllMocks() no longer restores mocks to their originals. Code that relied on it to restore mocks must call jest.restoreAllMocks() instead. github.com - Behavior changed
jest.restoreAllMocks
jest.restoreAllMocks() now clears mock state as well as restoring mocks. Code that relied on mock state surviving this call may need to change. github.com
jest 29.4.0 breaking changes
- Behavior changed
JSON imports in ESM code are now checked for import assertions, so imports without one may fail. Add the import assertion to JSON imports in ESM code. github.com
jest 29.0.0 breaking changes
- Removed
collectCoverageOnlyFrom
The collectCoverageOnlyFrom config option was removed. Remove it from your config. github.com - Behavior changed
babel
Inline snapshot updates now let babel find its config, which can change transformed output. github.com
And 2 more in this version.
jest 29.0.0-alpha.1 breaking changes
- Removed
pretty-format.plugins.ConvertAnsi
The ConvertAnsi plugin was removed in favour of jest-serializer-ansi-escapes. Install that package and use it instead. github.com
jest 29.0.0-alpha.0 breaking changes
- Removed
Jest 29 no longer supports Node 12 and 17. Upgrade Node before upgrading Jest. github.com - Behavior changed
snapshotFormat
The default snapshotFormat changed so existing snapshots may differ. Set snapshotFormat explicitly to keep the old output. github.com
jest 28.0.2 breaking changes
- Default changed
The Node 16 requirement is lowered from 16.13 to 16.10 because of a Node bug causing memory and performance issues. Users on Node 16.10 through 16.12 can now run Jest. github.com
jest 28.0.0 breaking changes
- Removed
--timers
Stop passing the --timers option to the Jest CLI. github.com - Removed
testURL
Use testEnvironmentOptions.url instead of testURL in your Jest config. github.com
And 19 more in this version.
jest 28.0.0-alpha.9 breaking changes
- Removed
Minimum supported TypeScript is now 4.3. github.com
jest 28.0.0-alpha.7 breaking changes
- Behavior changed
jest.resetModules
Calling jest.resetModules also clears the file system and transform caches. github.com
jest 28.0.0-alpha.5 breaking changes
- Renamed
extraGlobals
Rename the config option extraGlobals to sandboxInjectedGlobals. github.com - Renamed
moduleLoader
Rename the config option moduleLoader to runtime. github.com
And 1 more in this version.
jest 28.0.0-alpha.4 breaking changes
- Behavior changed
globalSetup
Additional argument added; existing functions still run. github.com
jest 28.0.0-alpha.0 breaking changes
- Removed
Minimum supported TypeScript is now 4.2. github.com - Removed
Jest 28 targets Node 16.13.0 and later. github.com
And 4 more in this version.
jest 27.0.0 breaking changes
- Removed
enabledTestsMap
The enabledTestsMap config was removed. Use filter instead. github.com - Removed
getSourceMapInfo
The deprecated getSourceMapInfo method was removed from Runtime. github.com
And 29 more in this version.
jest 24.0.0 breaking changes
- Removed
Jest now requires Babel 7 and no longer supports Babel 6. Upgrade your Babel setup. github.com - Removed
Jest no longer injects regenerator-runtime into tests. Import it yourself if your code needs it. github.com
And 69 more in this version.
jest 23.0.0 breaking changes
- Removed
jest.genMockFn
Both functions are removed; use jest.fn instead. github.com - Removed
jest.genMockFunction
Removed alongside jest.genMockFn. github.com
And 5 more in this version.
jest 22.0.0 breaking changes
- Removed
Jest no longer supports Node.js version 4. Upgrade Node.js before using this release. github.com - Renamed
dispose
Async test environments now use teardown instead of dispose. Update custom environments to implement teardown. github.com
And 4 more in this version.
jest 21.0.0 breaking changes
- Behavior changed
--listTests
Without --json, --listTests now prints a newline-separated list. Scripts that parsed the old output may need updating. github.com - Behavior changed
--silent
The test summary is no longer printed when --silent is used. Tools that read the summary from silent output may need changes. github.com
And 11 more in this version.
jest 20.0.0 breaking changes
- Removed
Config
The Config type was removed from Jest's exports; code importing it must stop using it. github.com - Removed
jasmine.CustomEqualityTester.__call
CustomEqualityTester.__call was removed in jest 20.0.0 npmjs.com
And 56 more in this version.
jest 19.0.0 breaking changes
- Removed
mocksPattern
The mocksPattern config option was removed because it never worked correctly. Remove it from your Jest configuration. github.com - Renamed
testPathDirs
The testPathDirs configuration option was renamed to roots. Update your configuration to use roots. github.com
And 9 more in this version.
jest 18.0.0 breaking changes
- Removed
mockImpl
mockImpl was removed. Use mockImplementation instead. github.com - Removed
pit
pit was removed. Use it instead. github.com
And 5 more in this version.
jest 17.0.0 breaking changes
- Removed
scriptPreprocessor
scriptPreprocessor is replaced by the new transform option, so configuration using it must move to transform. github.com - Renamed
jest.clearAllMocks
jest.resetAllMocks replaces jest.clearAllMocks; code calling clearAllMocks should switch to resetAllMocks. github.com
And 1 more in this version.
jest 16.0.0 breaking changes
- Behavior changed
Snapshots that included function names change output, so they need to be updated. github.com - Behavior changed
Snapshot output changes, so most existing snapshots must be updated when upgrading. github.com
And 30 more in this version.
jest 15.0.0 breaking changes
- Removed
Most Jasmine matchers were completely replaced with new Jest matchers, so code relying on the old Jasmine matchers must be updated. github.com - Behavior changed
Files ending in .spec.js and .test.js are now treated as test files by default, so existing files with those names may start running as tests. github.com
And 9 more in this version.
jest 14.0.0 breaking changes
- Removed
Jest no longer supports running tests written for Jasmine 1, so such tests must be ported. github.com - Behavior changed
Jest's reporters were rewritten, so test output may differ from earlier versions. github.com
And 10 more in this version.
jest 13.0.0 breaking changes
- Removed
jest-cli
The jest-cli package was split up, so code importing or depending on jest-cli must switch to jest-runtime and jest-config. github.com - Renamed
TestRunner
TestRunner was refactored into SearchSource, so code that references TestRunner must use SearchSource instead. github.com
jest 0.8.0 breaking changes
- Default changed
moduleFileExtensions
The default moduleFileExtensions now includes node, so modules with that extension are resolved by default. github.com
jest 0.7.0 breaking changes
- Removed
mock-modules
The undocumented mock-modules virtual module was removed. Usage can be updated with the linked codemod. github.com - Removed
mocks
The undocumented mocks virtual module was removed. Usage can be updated with the linked codemod. github.com
And 3 more in this version.
jest 0.6.0 breaking changes
- Behavior changed
toEqual
toEqual also compares the internal class name, so assertions like expect([]).toEqual({}) now fail and tests may need fixing. github.com - Signature changed
A preprocessor now receives the script, file and config, and the cache key function receives the stringified config too. Custom preprocessors must be updated. github.com
jest 0.5.0 breaking changes
- Behavior changed
Jest now only works with io.js v2 and up. Users still on node should upgrade to io.js or stay on jest 0.4.0. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.