Packages

jest-util

30.5.1 · 1 Sep 2026MIT156.2M / weekRepositoryHomepagenpmAtom feed

Your version

21.1.0

14 Sep 2017Where it was published

21.2.1 is the newest release of 21.x.

In short

2 new2 fixed3 changed

Release note

  • (minor) Use ES module exports

  • Allow chaining mockClear and mockReset

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

  • Expose restoreAllMocks to object

  • Fix function name cleaning when making mock fn

  • Fix Map/Set equality checker

  • Make FUNCTION_NAME_RESERVED_PATTERN stateless