Packages

jest-util

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

Upgrading jest-util From 27.2.4 to 27.5.1

8 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 27.2.4Latest30.5.1

Before you upgrade

Tick each one off as you go
  • deprecated27.2.5

Release by release

  1. 27.5.1

    8 Feb 20223 new · 3 fixes
    • new

      jest-config: Support comments in JSON config file

    • new

      pretty-format: Expose ConvertAnsi plugin

    • new

      expect: Add type definitions for asymmetric closeTo matcher

    • fixed

      jest-cli: Load binary via exported API

    • fixed

      jest-config: Replace jsonlint with parse-json

    • fixed

      jest-repl: Make module importable (#12311 & #12315)

  2. 27.5.0

    5 Feb 20226 new · 3 fixes
    • new

      expect: Add asymmetric matcher expect.closeTo

    • new

      jest-mock: Added mockFn.mock.lastCall to retrieve last argument

    • new

      expect: Add a fix for .toHaveProperty('')

    • new

      @jest/globals: Add missing options argument to jest.doMock typing

  3. 27.4.2

    30 Nov 20211 new
    • new

      jest-worker: Add additional execArgv to filter

  4. 27.4.1

    30 Nov 20211 fix
    • fixed

      jest-worker: Filter execArgv correctly

  5. 27.4.0

    29 Nov 20216 new · 7 fixes
    • new

      expect: Enhancing the toHaveProperty matcher to support array selection

    • new

      jest-core: Add support for testResultsProcessor written in ESM

    • new

      jest-diff, pretty-format: Add compareKeys option for custom sorting of object keys

    • new

      jest-mock: Add ts-jest mock util functions

  6. 27.3.1

    19 Oct 20212 fixes
    • fixed

      expect: Make expect extension properties configurable

    • fixed

      expect: Fix .any() checks on primitive wrapper classes

  7. 27.3.0

    17 Oct 20212 new · 3 fixes
    • new

      jest-config: Add testEnvironmentOptions.html to apply to jsdom input

    • new

      jest-resolver: Support default export (.) in exports field if main is missing

    • fixed

      expect: Tweak and improve types

    • fixed

      jest-runtime: Ensure absolute paths can be resolved within test modules

    • fixed

      jest-runtime: Fix instanceof for ModernFakeTimers and LegacyFakeTimers methods

  8. 27.2.5

    Deprecation8 Oct 20211 new · 6 fixes
    • deprecated

      @jest/types: Mark deprecated configuration options as @deprecated

    • new

      jest-config: Warn when multiple Jest configs are located

    • fixed

      expect: Pass matcher context to asymmetric matchers (#11926 & #11930)

    • fixed

      expect: Improve TypeScript types

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