@jest/environment
30.5.2 · 18 Sep 2026MIT80.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @jest/environment From 26.0.0 to 26.6.2
9 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 24
- new
- 36
- fixes
Before you upgrade
Tick each one off as you go- Breaking26.3.0
Release by release
- New
jest-core: Add
findRelatedTestsandnonFlagArgsin allowed config options forupdateConfigAndRunin watch plugins - Fixed
babel-plugin-jest-hoist: Preserve order of hoisted mock nodes within containing block
- Fixed
babel-plugin-jest-hoist: Hoist pure constants to support experimental JSX transform in hoisted mocks
- Fixed
babel-preset-jest: Update
babel-preset-current-node-syntaxto support top level await
- New
- New
jest-runtime: Support named exports from CommonJS as named ES Module imports
- New
jest-validate: Add support for
recursiveDenylistoption as an alternative torecursiveBlacklist - Fixed
expect: Fix
objectContainingto work recursively into sub-objects - Fixed
jest-cli, jest-core, jest-config, jest-types: Fix
--onlyFailuresflag to work in non-watch mode - Fixed
jest-config: Fix for the
jest.config.tscompiler to not interfere withtsconfig.jsonfiles - Fixed
jest-message-util: Update to work properly with Node 15
- Fixed
jest-mock: Allow to mock methods in getters (TypeScript 3.9 export)
- New
- New
jest-cli, jest-config: Add support for the
jest.config.tsconfiguration file - New
@jest/types: Add missing values for
timers - Fixed
jest-config: Simplify transform RegExp
- Fixed
jest-fake-timers: Lazily instantiate mock timers
- Fixed
jest-runtime:
require.mainis no longerundefinedwhen usingjest.resetModules
- New
- Fixed
*: Revert usage of Escalade and rollback Yargs to v15 as it breaks Node 13
- Fixed
jest-circus: Setup globals before emitting
setup, and include Jest globals in thesetuppayload - Fixed
jest-mock: Fix typings for
mockResolvedValue,mockResolvedValueOnce,mockRejectedValueandmockRejectedValueOnce
- Fixed
- New
jest-circus, jest-config, jest-runtime: Add new
injectGlobalsconfig and CLI option to disable injecting global variables into the runtime - New
jest-runner: Add support for
moduleLoaders withdefaultexports - New
@jest/create-cache-key-function: Added a new package for creating cache keys
- New
jest-console: Add
Consoleconstructor toconsoleobject
- New
- Breaking
jest-worker: Downgrade minimum node version to 10.13
- New
jest-circus, jest-jasmine2: Include
failureDetailsproperty in test results - New
jest-each, jest-jasmine, jest-circus: Add support for
.concurrent.each - New
jest-config: Add
.pnp.jstotransformIgnorePatternsdefaults - Fixed
jest-leak-detector: Wait properly for GC runs due to changes in Node 14.7
- Breaking
- New
[jest-core, jest-circus, jest-reporter, jest-runner]Added support for reporting individual test cases using jest-circus - New
[jest-config, jest-reporter, jest-runner, jest-test-sequencer]AddslowTestThresholdconfiguration option - New
jest-haste-map: Watchman crawler now includes dotfiles
- New
jest-worker: Added support for workers to send custom messages to parent in jest-worker
- New
- New
jest-mock: Export
Mock,MockInstance,SpyInstancetypes - New
jest-config: Support config files exporting (
async)functions - New
jest-cli, jest-core: Add
--selectProjectsCLI argument to filter test suites by project name - New
jest-cli, jest-init: Add
coverageProvidertojest --initprompts
- New
1 other line we could not sort, mostly version bumps
- 26.6.2
expect: Revert "Fix
objectContainingto work recursively into sub-objects (#10508)"
25 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.