@jest/environment
30.5.2 · 18 Sep 2026MIT80.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @jest/environment From 25.0.0 to 25.5.0
9 releases in betweenevery note read
- 20
- changes to make
- 0
- advisories fixed
- 55
- new
- 68
- fixes
Before you upgrade
Tick each one off as you go- Breaking25.2.0
- Breaking25.1.0
- Breaking25.1.0
- Breaking25.1.0
- Breaking25.1.0
- Breaking25.1.0
- Breaking25.1.0
- Breaking25.1.0
- Breaking25.1.0
- Breaking25.1.0
Release by release
- New
@jest/globals: New package so Jest's globals can be explicitly imported
- New
jest-core: Show coverage of sources related to tests in changed files
- New
jest-runtime: Populate
require.cache - New
jest-resolve: Update
resolveto a version using nativerealpath, which is faster than the default JS implementation
- New
- New
expect: Support
async functions intoThrow - New
jest-console: Add code frame to
console.errorandconsole.warn - Fixed
expect: Restore support for passing functions to
toHaveLengthmatcher - Fixed
jest-changed-files:
--only-changedshould include staged files - Fixed
jest-circus: Throw on nested test definitions
- Fixed
jest-each:
eachwill throw an error when called with too many arguments - Fixed
jest-runner: Don't print warning to stdout when using
--json
- New
- New
babel-jest: Support passing
supportsDynamicImportandsupportsStaticESM - New
babel-preset-jest: Enable all syntax plugins not enabled by default that works on current version of Node
- New
jest-circus: Enable writing async test event handlers
- New
jest-runtime, @jest/transformer: Support passing
supportsDynamicImportandsupportsStaticESM
- New
25.2.6nothing new or fixed in the note
- Fixed
*: Verify all packages are properly downleveled for older versions of TypeScript
- Fixed
- Fixed
*: Downlevel TypeScript definitions files for compatibility with TS<3.8
- Fixed
- Breaking
jest-haste-map: Remove
mapperoption - New
jest-config: Support ESM config files with
.jsextension (#9573). - New
jest-runtime: Override
module.createRequireto return a Jest-compatiblerequirefunction - New
*: Support array of paths for
moduleNameMapperaliases
- Breaking
1 other line we could not sort, mostly version bumps
23 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.