@jest/core
30.5.2 · 18 Sep 2026MIT60.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @jest/core From 26.4.2 to 26.6.3
7 releases in betweenevery note read
Release by release
- fixed
jest-resolve-dependencies: Continue dependency resolution if mock dependency can't be found
- fixed
- 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
- new
jest-runtime: Add support for dynamic
import()from CommonJS - new
jest-runtime: Add missing
module.pathproperty - new
jest-runtime: Add
mainModuleinstance variable to runtime - fixed
jest-runner, jest-runtime:
require.mainshould not beundefinedwithcreateRequire() - fixed
jest-runtime: Evaluate Node core modules on dynamic
import() - fixed
jest-validate: Show suggestion only when unrecognized cli param is longer than 1 character
- fixed
jest-validate: Validate
testURLas CLI option
- 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
1 other line we could not sort, mostly version bumps
- 26.6.2
expect: Revert "Fix
objectContainingto work recursively into sub-objects (#10508)"
9 internal lines (docs, tests, tooling) left out.