Packages

@jest/types

30.5.1 · 1 Sep 2026MIT190.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @jest/types From 27.0.2 to 27.5.1

11 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 27.0.2Latest30.5.1
  1. 27.0.2yours
  2. 10 releases
  3. 27.5.1target

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

  7. 27.2.4

    29 Sep 20211 new · 1 fix
    • new

      expect: Add equality checks for Array Buffers in expect.ToStrictEqual()

    • fixed

      jest-snapshot: Correctly indent inline snapshots

  8. 27.2.3

    28 Sep 20212 fixes
    • fixed

      jest-config: Parse testEnvironmentOptions if received from CLI

    • fixed

      jest-reporters: Call destroy on v8-to-istanbul converters to free memory

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