@jest/environment
30.5.2 · 18 Sep 2026MIT80.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @jest/environment From 29.1.1 to 30.5.2
32 releases in betweenevery note read
- 32
- changes to make
- 0
- advisories fixed
- 163
- new
- 245
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking30.5.0
- Breaking30.0.0
- Breaking30.0.0
- Breaking30.0.0
- Breaking30.0.0
- Breaking30.0.0
- Breaking30.0.0
- Breaking30.0.0
- Breaking30.0.0
- Breaking30.0.0
Security
- 30.0.0
[jest-environment-jsdom, jest-environment-jsdom-abstract]Increased version of jsdom to^26.0.0(#15325CVE-2024-37890) - 29.6.0
*: Update
semverdependency to get vulnerability fix
Release by release
- New
@jest/transform: Strip TypeScript types with Node when no transformer claims a
.ts,.mtsor.ctsfile - Fixed
jest-core, jest-haste-map, jest-transform: Keep
require('../package.json')external when bundling, sojest --versionand the transform and haste-map cache keys report the released version instead of the previous one - Fixed
jest-each: Escape a table row's keys before building the
$variableinterpolationRegExp, so a column name such ascount(*)no longer fails the whole table withInvalid regular expression, and a.or|in a column name is matched literally - Fixed
@jest/source-map: Resolve absolute Windows paths in a source map's
sourcesandsourceRootagain, instead of appending them to the transformed file's directory
- New
- Fixed
jest-config: Don't warn about global-only options in the config that supplies the global config - the root config a project resolves to, or the first entry of
--projectswhen no root config is passed - Fixed
jest-config, jest-types: Stop accepting
reporters,coverageReporters,workerIdleMemoryLimit,cwdandrunnerOptionsin a project config - they were silently ignored, and now warn like the other global-only options - Fixed
jest-config, jest-validate: Warn about
maxWorkersandcoverageThresholdin a project config instead of dropping them without a word - Fixed
jest-resolve: Match
moduleNameMapperpatterns against the specifier as written again (reverting #16390) - Fixed
jest-runtime: Resolve package
importsspecifiers like#depunder ESM again
- Fixed
- Breaking
jest-haste-map: Match watched files on a full extension, so
moduleFileExtensions: ['js']no longer acceptsfoo.mjs - Deprecated
@jest/source-map: Deprecate
getCallsitein favour ofSourceMapSupport#getCallsite - New
babel-plugin-istanbulis updated to v8 - New
globis updated to v13
- Breaking
- New
[jest-config, jest-core, jest-runner, jest-schemas, jest-types]Allow custom runner configuration options via tuple format['runner-path', {options}] - Fixed
jest-runtime: Align CJS-from-ESM default export with Node:
module.exportsis always the ESM default,__esModuleunwrapping is no longer applied
- New
- New
babel-jest: Support collecting coverage from
.mts,.cts(and other) files - New
[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2, jest-types]Add--collect-testsflag to discover and list tests without executing them - New
jest-config, jest-runner, jest-worker: Add
workerGracefulExitTimeoutconfig option to control how long workers are given to exit before being force-killed - New
jest-config: Add support for
jest.config.mtsas a valid configuration file
- New
- New
jest-config: Add
defineConfigandmergeConfighelpers for type-safe Jest config - New
jest-fake-timers: Add
setTimerTickModeto configure how timers advance - New
*: Reduce token usage when run through LLMs
- Fixed
jest-config: Keep CLI coverage output when using
--jsonwith--outputFile
- New
- New
jest-environment-jsdom-abstract: Add support for JSDOM v27
- Fixed
babel-jest: Export the
TransformerConfiginterface - Fixed
jest-config: Fix
jest.config.tswith TS loader specified in docblock pragma
- New
- Fixed
jest-snapshot-utils: Correct snapshot header regexp to work with newline across OSes
- Fixed
1 other line we could not sort, mostly version bumps
- 29.2.0
jest-reporters: Transform file paths into hyperlinks
63 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.