jest-mock
30.5.2 · 18 Sep 2026MIT94.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jest-mock From 25.2.5 to 25.5.0
4 releases in betweenevery note read
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
1 other line we could not sort, mostly version bumps
7 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.