Packages

jest-mock

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

Upgrading jest-mock From 21.0.0 to 21.2.0

3 releases in betweennotes for 2

Other targets from 21.0.0Latest30.5.2
?
changes to make
0
advisories fixed
4+
new
6+
fixes

Counted from 2 of 3 release notes. Advisories are counted from the advisory database, in full.

Release by release

  1. 21.2.0

    26 Sep 20172 new · 4 fixes
    • New

      Allow eslint-plugin to recognize more disabled tests

    • New

      Add babel-plugin for object spread syntax to babel-preset-jest

    • Fixed

      Do not modify stack trace of JestAssertionError

    • Fixed

      Fix --silent --verbose problem

    • Fixed

      Reset local state of assertions when using hasAssertions

    • Fixed

      jest-resolve: Prevent default resolver failure when potential resolution directory does not exist

  2. 21.1.0

    14 Sep 20172 new · 2 fixes
    • New

      Allow chaining mockClear and mockReset

    • New

      Expose restoreAllMocks to object

    • Fixed

      Fix function name cleaning when making mock fn

    • Fixed

      Fix Map/Set equality checker

  3. 21.0.2no release note

6 other lines we could not sort, mostly version bumps
  • 🃏 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
  • (minor) Use ES module exports

    21.1.0
  • Call jest-diff and pretty-format more precisely in toHaveProperty matcher

    21.1.0
  • Make FUNCTION_NAME_RESERVED_PATTERN stateless

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