Packages

jest-mock

30.5.2 · 18 Sep 2026MIT94.8M / weekRepositoryHomepagenpmAtom feed

Upgrading jest-mock From 1.0.0 to 30.5.2

127 releases in betweennotes for 66

25.0.0, 24.0.0, 23.0.0, 22.0.0, 21.0.0, 20.0.0, 19.0.0, 18.0.0, 17.0.0, 16.0.0, 15.0.0, 14.0.0, 13.0.0, 12.0.0, 11.0.0, 10.0.0 have no release note on GitHub or in the repository's changelog, so their breaking changes are missing from the counts below; the migration guide covers them.
  1. 1.0.0yours
  2. 1 release
  3. 10.0.0major
  4. 2 releases
  5. 11.0.0major
  6. 2 releases
  7. 12.0.0major
  8. 3 releases
  9. 13.0.0major
  10. 3 releases
  11. 14.0.0major
  12. 15.0.0major
  13. 16.0.0major
  14. 1 release
  15. 17.0.0major
  16. 1 release
  17. 18.0.0major
  18. 19.0.0major
  19. 20.0.0major
  20. 3 releases
  21. 21.0.0major
  22. 3 releases
  23. 22.0.0major
  24. 8 releases
  25. 23.0.0major
  26. 4 releases
  27. 24.0.0major
  28. 6 releases
  29. 25.0.0major
  30. 9 releases
  31. 26.0.0major
  32. 25 releases
  33. 28.0.0major
  34. 5 releases
  35. 29.0.0major
  36. 16 releases
  37. 29.6.0security
  38. 4 releases
  39. 30.0.0security
  40. 9 releases
  41. 30.5.2target
105+
changes to make
0
advisories fixed
289+
new
390+
fixes

Counted from 66 of 127 release notes. Advisories are counted from the advisory database, in full.

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

  • [jest-environment-jsdom, jest-environment-jsdom-abstract] Increased version of jsdom to ^26.0.0 (#15325CVE-2024-37890)

    30.0.0
  • *: Update semver dependency to get vulnerability fix

    29.6.0

Release by release

  1. 30.5.2

    18 Sep 20261 new · 3 fixes
    • New

      @jest/transform: Strip TypeScript types with Node when no transformer claims a .ts, .mts or .cts file

    • Fixed

      jest-core, jest-haste-map, jest-transform: Keep require('../package.json') external when bundling, so jest --version and 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 $variable interpolation RegExp, so a column name such as count(*) no longer fails the whole table with Invalid 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 sources and sourceRoot again, instead of appending them to the transformed file's directory

  2. 30.5.1

    1 Sep 20265 fixes
    • 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 --projects when no root config is passed

    • Fixed

      jest-config, jest-types: Stop accepting reporters, coverageReporters, workerIdleMemoryLimit, cwd and runnerOptions in a project config - they were silently ignored, and now warn like the other global-only options

    • Fixed

      jest-config, jest-validate: Warn about maxWorkers and coverageThreshold in a project config instead of dropping them without a word

    • Fixed

      jest-resolve: Match moduleNameMapper patterns against the specifier as written again (reverting #16390)

    • Fixed

      jest-runtime: Resolve package imports specifiers like #dep under ESM again

  3. 30.5.0

    Migration needed28 Aug 202635 new · 86 fixes
    • Breaking

      jest-haste-map: Match watched files on a full extension, so moduleFileExtensions: ['js'] no longer accepts foo.mjs

    • Deprecated

      @jest/source-map: Deprecate getCallsite in favour of SourceMapSupport#getCallsite

    • New

      babel-plugin-istanbul is updated to v8

    • New

      glob is updated to v13

  4. 30.4.1

    8 May 20261 new · 1 fix
    • 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.exports is always the ESM default, __esModule unwrapping is no longer applied

  5. 30.4.0

    7 May 202616 new · 21 fixes
    • 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-tests flag to discover and list tests without executing them

    • New

      jest-config, jest-runner, jest-worker: Add workerGracefulExitTimeout config option to control how long workers are given to exit before being force-killed

    • New

      jest-config: Add support for jest.config.mts as a valid configuration file

  6. 30.3.0

    10 Mar 20263 new · 6 fixes
    • New

      jest-config: Add defineConfig and mergeConfig helpers for type-safe Jest config

    • New

      jest-fake-timers: Add setTimerTickMode to configure how timers advance

    • New

      *: Reduce token usage when run through LLMs

    • Fixed

      jest-config: Keep CLI coverage output when using --json with --outputFile

  7. 30.2.0

    28 Sep 20251 new · 2 fixes
    • New

      jest-environment-jsdom-abstract: Add support for JSDOM v27

    • Fixed

      babel-jest: Export the TransformerConfig interface

    • Fixed

      jest-config: Fix jest.config.ts with TS loader specified in docblock pragma

  8. 30.0.5

    22 Jul 20252 new · 1 fix
    • New

      jest-config: Allow testMatch to take a string value

    • New

      jest-worker: Let workerIdleMemoryLimit accept 0 to always restart worker child processes

    • Fixed

      expect: Fix bigint error

2 other lines we could not sort, mostly version bumps
  • jest-reporters: Transform file paths into hyperlinks

    29.2.0
  • expect: Revert "Fix objectContaining to work recursively into sub-objects (#10508)"

    26.6.2

134 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.