Packages

jest-mock

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

Upgrading jest-mock From 18.0.0 to 19.0.0

1 release in betweenevery note read

Other targets from 18.0.0Latest30.5.2
  1. 18.0.0yours
  2. 19.0.0target

Before you upgrade

Tick each one off as you go
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0

Release by release

  1. 19.0.0

    Migration needed21 Feb 201715 new · 14 fixes
    • Breaking

      Added a version for snapshots.

    • Breaking

      Removed the mocksPattern configuration option, it never worked correctly.

    • Breaking

      Renamed testPathDirs to roots to avoid confusion when configuring Jest.

    • Breaking

      Updated printing of React elements to cause fewer changes when props change.

7 other lines we could not sort, mostly version bumps
  • Improved babel-jest plugin: babel is loaded lazily, istanbul comments are only added when coverage is used.

    19.0.0
  • Improved error for invalid transform config.

    19.0.0
  • Improved moduleNameMapper to not overwrite mocks when many patterns map to the same file.

    19.0.0
  • Improved printing of skipped tests in verbose mode.

    19.0.0
  • Improved resolution code in jest-resolve.

    19.0.0
  • Improved to only show patch marks in assertion errors when the comparison results in large objects.

    19.0.0
  • Rewritten watch mode for instant feedback, better code quality and to build new features on top of it (#2362).

    19.0.0

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.