Packages

jest-util

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

Your version

29.0.3

10 Sep 2022Where it was published

29.7.0 is the newest release of 29.x.

In short

4 new4 fixed2 internal

Release note

Features

  • @jest/environment, jest-runtime: Allow passing a generic type argument to jest.createMockFromModule<T>() method

  • expect: Expose ExpectationResult type

  • jest-snapshot: Expose Context type

  • @jest/globals: Add jest.Mock type helper

Fixes

  • jest-core: Capture execError during TestScheduler.scheduleTests and dispatch to reporters

  • jest-resolve: Make sure to resolve module paths after looking at exports

  • jest-resolve: Improve error on module not found deep in the require stack

  • jest-snapshot: Fix typings of snapshot matchers