Packages

babel-jest

30.5.2 · 18 Sep 2026MIT71.6M / weekRepositoryHomepagenpmAtom feed

Upgrading babel-jest From 5.3.0 to 30.5.2

157 releases in betweennotes for 136

25.0.0, 12.0.0, 11.0.0, 9.0.0, 6.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. 5.3.0yours
  2. 6.0.0major
  3. 1 release
  4. 9.0.0major
  5. 5 releases
  6. 11.0.0major
  7. 2 releases
  8. 12.0.0major
  9. 3 releases
  10. 13.0.0major
  11. 2 releases
  12. 14.0.0major
  13. 3 releases
  14. 15.0.0major
  15. 16.0.0major
  16. 17.0.0major
  17. 1 release
  18. 18.0.0major
  19. 19.0.0major
  20. 20.0.0major
  21. 3 releases
  22. 21.0.0major
  23. 2 releases
  24. 22.0.0major
  25. 12 releases
  26. 23.0.0major
  27. 5 releases
  28. 24.0.0major
  29. 1 release
  30. 24.3.0security
  31. 8 releases
  32. 25.0.0major
  33. 10 releases
  34. 26.0.0major
  35. 12 releases
  36. 27.0.0major
  37. 22 releases
  38. 28.0.0major
  39. 7 releases
  40. 29.0.0major
  41. 15 releases
  42. 29.6.0security
  43. 5 releases
  44. 30.0.0security
  45. 13 releases
  46. 30.5.2target
225+
changes to make
0
advisories fixed
732+
new
872+
fixes

Counted from 136 of 157 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
  • jest-cli: Fix prototype pollution vulnerability in dependency

    24.3.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.1.2

    1 Sep 20251 fix
    • fixed

      jest-snapshot-utils: Correct snapshot header regexp to work with newline across OSes

221 other lines we could not sort, mostly version bumps
  • expect: Revert "Fix objectContaining to work recursively into sub-objects (#10508)"

    26.6.2
  • jest-runtime, jest-jasmine2, jest-circus: Experimental, limited ECMAScript Modules support (#9772 & #9842)

    25.4.0
  • babel-jest: Revert "Remove retainLines from babel-jest"

    22.2.2
  • 🃏 Change license from BSD+Patents to MIT.

    21.2.0
  • Display outer element and trailing newline consistently in jest-diff

    21.2.0
  • Print errors after test structure in verbose mode

    21.2.0
  • Take precedence of NODE_PATH when resolving node_modules directories

    21.0.2
  • Upgrade all outdated deps

    21.0.2
  • Adding ancestorTitles property to JSON test output

    21.0.0
  • Better error handling for --config

    21.0.0

327 internal lines (docs, tests, tooling) left out.