Packages

@jest/expect

30.5.2 · 18 Sep 2026MIT58.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @jest/expect From 29.2.2 to 29.7.0

13 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 29.2.2Latest30.5.2
  1. 29.2.2yours
  2. 7 releases
  3. 29.6.0security
  4. 29.6.1breaking
  5. 1 release
  6. 29.6.3breaking
  7. 1 release
  8. 29.7.0target

Before you upgrade

Tick each one off as you go
  • breaking29.6.3
  • breaking29.6.1

Security

  • *: Update semver dependency to get vulnerability fix

    29.6.0

Release by release

  1. 29.7.0

    12 Sep 20233 new · 3 fixes
    • new

      create-jest: Add npm init / yarn create initialiser for Jest projects

    • new

      jest-validate: Allow deprecation warnings for unknown options

    • new

      @jest/create-cache-key-function: Cache access of NODE_ENV and BABEL_ENV

    • fixed

      jest-resolver: Replace unmatched capture groups in moduleNameMapper with empty string instead of undefined

    • fixed

      jest-snapshot: Allow for strings as well as template literals in inline snapshots

    • fixed

      @jest/test-sequencer: Calculate test runtime if perStats.duration is missing

  2. 29.6.4

    24 Aug 20232 fixes
    • fixed

      jest-environment-node: Make sure atob and btoa are writeable in Node 20

    • fixed

      jest-worker: Additional error wrapper for parentPort.postMessage to fix unhandled DataCloneError.

  3. 29.6.3

    Migration needed21 Aug 20236 fixes
    • breaking

      jest-mock: Revert #13692 as it was a breaking change

    • fixed

      expect, @jest/expect-utils: ObjectContaining support symbol as key

    • fixed

      expect: Remove @types/node from dependencies

    • fixed

      jest-core: Use workers in watch mode by default to avoid crashes (#14059 & #14085).

    • fixed

      jest-reporters: Update istanbul-lib-instrument dependency to v6.

    • fixed

      @jest/reporters: Marks Reporter's hooks as optional

    • fixed

      jest-runtime: Fix dynamic ESM import module bug when loaded module through jest.isolateModulesAsync

  4. 29.6.2

    27 Jul 20231 new · 4 fixes
    • new

      jest-reporters: Add "skipped" and "todo" symbols to Github Actions Reporter

    • fixed

      jest-circus: Fix snapshot matchers in concurrent tests when nr of tests exceeds maxConcurrency

    • fixed

      @jest/core: When running global setup and teardown, do not try to change the message property of the thrown error object when the message property is unwritable

    • fixed

      jest-snapshot: Move @types/prettier from dependencies to devDependencies

    • fixed

      jest-snapshot: Throw an explicit error if Prettier v3 is used

  5. 29.6.1

    Migration needed6 Jul 2023
    • breaking

      jest-circus: Revert #14110 as it was a breaking change

  6. 29.6.0

    Security fix4 Jul 20234 new · 14 fixes
    • security

      *: Update semver dependency to get vulnerability fix

    • new

      jest-circus, jest-snapshot: Add support for snapshot matchers in concurrent tests

    • new

      jest-cli: Include type definitions to generated config files

    • new

      jest-snapshot: Support arrays as property matchers

  7. 29.5.0

    6 Mar 202314 new · 7 fixes
    • new

      jest-changed-files: Support Sapling

    • new

      jest-circus, @jest/cli, jest-config: Add feature to randomize order of tests via CLI flag or through the config file

    • new

      [jest-cli, jest-config, @jest/core, jest-haste-map, @jest/reporters, jest-runner, jest-runtime, @jest/types] Add workerThreads configuration option to allow using worker threads for parallelization

    • new

      jest-cli: Export yargsOptions

  8. 29.4.3

    15 Feb 20234 new · 4 fixes
    • new

      expect: Update toThrow() to be able to use error causes

    • new

      jest-core: Allow to use workerIdleMemoryLimit with only 1 worker or runInBand option

    • new

      jest-message-util: Add support for error causes (#13868 & #13912)

    • new

      jest-runtime: Revert import assertions for JSON modules as it's been relegated to Stage 2

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