Packages

jest-util

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

Upgrading jest-util From 26.1.0 to 26.6.2

7 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 26.1.0Latest30.5.1

Before you upgrade

Tick each one off as you go
  • breaking26.3.0

Release by release

  1. 26.6.2

    2 Nov 20201 new · 11 fixes
    • new

      jest-core: Add findRelatedTests and nonFlagArgs in allowed config options for updateConfigAndRun in watch plugins

    • fixed

      babel-plugin-jest-hoist: Preserve order of hoisted mock nodes within containing block

    • fixed

      babel-plugin-jest-hoist: Hoist pure constants to support experimental JSX transform in hoisted mocks

    • fixed

      babel-preset-jest: Update babel-preset-current-node-syntax to support top level await

  2. 26.6.1

    23 Oct 20202 new · 5 fixes
    • new

      jest-runtime: Support named exports from CommonJS as named ES Module imports

    • new

      jest-validate: Add support for recursiveDenylist option as an alternative to recursiveBlacklist

    • fixed

      expect: Fix objectContaining to work recursively into sub-objects

    • fixed

      jest-cli, jest-core, jest-config, jest-types: Fix --onlyFailures flag to work in non-watch mode

    • fixed

      jest-config: Fix for the jest.config.ts compiler to not interfere with tsconfig.json files

    • fixed

      jest-message-util: Update to work properly with Node 15

    • fixed

      jest-mock: Allow to mock methods in getters (TypeScript 3.9 export)

  3. 26.6.0

    19 Oct 20202 new · 3 fixes
    • new

      jest-cli, jest-config: Add support for the jest.config.ts configuration file

    • new

      @jest/types: Add missing values for timers

    • fixed

      jest-config: Simplify transform RegExp

    • fixed

      jest-fake-timers: Lazily instantiate mock timers

    • fixed

      jest-runtime: require.main is no longer undefined when using jest.resetModules

  4. 26.5.2

    6 Oct 20203 fixes
    • fixed

      *: Revert usage of Escalade and rollback Yargs to v15 as it breaks Node 13

    • fixed

      jest-circus: Setup globals before emitting setup, and include Jest globals in the setup payload

    • fixed

      jest-mock: Fix typings for mockResolvedValue, mockResolvedValueOnce, mockRejectedValue and mockRejectedValueOnce

  5. 26.5.0

    5 Oct 20204 new · 4 fixes
    • new

      jest-circus, jest-config, jest-runtime: Add new injectGlobals config and CLI option to disable injecting global variables into the runtime

    • new

      jest-runner: Add support for moduleLoaders with default exports

    • new

      @jest/create-cache-key-function: Added a new package for creating cache keys

    • new

      jest-console: Add Console constructor to console object

  6. 26.3.0

    Migration needed10 Aug 20203 new · 1 fix
    • breaking

      jest-worker: Downgrade minimum node version to 10.13

    • new

      jest-circus, jest-jasmine2: Include failureDetails property in test results

    • new

      jest-each, jest-jasmine, jest-circus: Add support for .concurrent.each

    • new

      jest-config: Add .pnp.js to transformIgnorePatterns defaults

    • fixed

      jest-leak-detector: Wait properly for GC runs due to changes in Node 14.7

  7. 26.2.0

    30 Jul 20207 new · 4 fixes
    • new

      [jest-core, jest-circus, jest-reporter, jest-runner] Added support for reporting individual test cases using jest-circus

    • new

      [jest-config, jest-reporter, jest-runner, jest-test-sequencer] Add slowTestThreshold configuration option

    • new

      jest-haste-map: Watchman crawler now includes dotfiles

    • new

      jest-worker: Added support for workers to send custom messages to parent in jest-worker

1 other line we could not sort, mostly version bumps
  • expect: Revert "Fix objectContaining to work recursively into sub-objects (#10508)"

    26.6.2

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