Packages

jest-util

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

Your version

146 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 27.x
  2. 27.0.1

    25 May 2021
    • jest-environment-jsdom: Bump version of JSDOM to avoid deprecated request package

  3. 26.x
  4. 26.6.2

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

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

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

  5. 26.6.1

    23 Oct 2020
    • jest-runtime: Support named exports from CommonJS as named ES Module imports

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

    • expect: Fix objectContaining to work recursively into sub-objects

  6. 26.6.0

    19 Oct 2020
    • jest-cli, jest-config: Add support for the jest.config.ts configuration file

    • jest-config: Simplify transform RegExp

    • jest-fake-timers: Lazily instantiate mock timers

  7. 26.5.2

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

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

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

  8. 26.5.0

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

    • jest-each: Fixes .each type to always be callable

    • jest-runner: Add support for moduleLoaders with default exports

  9. 26.3.0

    10 Aug 2020
    • breaking

      jest-worker: Downgrade minimum node version to 10.13

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

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

  10. 26.2.0

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

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

    • jest-haste-map: Watchman crawler now includes dotfiles

  11. 26.1.0

    23 Jun 2020
    • jest-mock: Export Mock, MockInstance, SpyInstance types

    • jest-config: Support config files exporting (async) functions

    • jest-cli, jest-core: Add --selectProjects CLI argument to filter test suites by project name

  12. 26.0.1

    5 May 2020
    • jest-circus: Backward compatibility for deprecated DescribeBlock.tests to not break e.g. Detox reporter

  13. 26.0.0

    4 May 2020
    • breaking

      jest-environment-jsdom: Upgrade jsdom to v16

    • breaking

      jest-circus: Fail tests if a test takes a done callback and have return values

    • breaking

      jest-circus: Throw a proper error if a test / hook is defined asynchronously

  14. 25.x
  15. 25.5.0

    28 Apr 2020
    • @jest/globals: New package so Jest's globals can be explicitly imported

    • jest-core: Show coverage of sources related to tests in changed files

    • jest-runtime: Populate require.cache

  16. 25.4.0

    19 Apr 2020
    • expect: Support async functions in toThrow

    • jest-console: Add code frame to console.error and console.warn

    • jest-runtime, jest-jasmine2, jest-circus: Experimental, limited ECMAScript Modules support (#9772 & #9842)

  17. 25.3.0

    8 Apr 2020
    • babel-jest: Support passing supportsDynamicImport and supportsStaticESM

    • babel-preset-jest: Enable all syntax plugins not enabled by default that works on current version of Node

    • jest-circus: Enable writing async test event handlers

  18. 25.2.6

    2 Apr 2020

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  19. 25.2.5

    2 Apr 2020
    • @jest/console: Fix typescript<@3.8 compatibility in published types

  20. 25.2.3

    26 Mar 2020
    • *: Verify all packages are properly downleveled for older versions of TypeScript

  21. 25.2.1

    26 Mar 2020
    • *: Downlevel TypeScript definitions files for compatibility with TS<3.8

  22. 25.2.0

    25 Mar 2020
    • breaking

      jest-haste-map: Remove mapper option

    • jest-config: Support ESM config files with .js extension (#9573).

    • jest-runtime: Override module.createRequire to return a Jest-compatible require function

  23. 25.1.0

    22 Jan 2020
    • breaking

      jest-config: Set default display name color based on runner

    • breaking

      jest-config: Support .mjs config files

    • breaking

      jest-diff: Export as ECMAScript module

  24. 25.0.0

    22 Aug 2019
  25. 24.x
  26. 24.9.0

    16 Aug 2019
    • expect: Highlight substring differences when matcher fails, part 1

    • expect: Highlight substring differences when matcher fails, part 2

    • expect: Improve report when mock-spy matcher fails, part 1

  27. 24.8.0

    5 May 2019
    • jest-circus: Bind to Circus events via an optional event handler on any custom env

    • expect: Improve report when matcher fails, part 15

    • jest-cli: Update --forceExit and "did not exit for one second" message colors

  28. 24.7.1

    4 Apr 2019
    • @jest/config: Normalize testSequencer to its absolute path

    • @jest/console: Print to stderr when calling console.error, console.warn or console.assert using the jest-runtime CLI

  29. 24.7.0

    3 Apr 2019
    • removed

      expect: Remove repetition of matcherName and options in matchers

    • @jest/core, @jest/test-sequencer: Move testSequencer to individual package @jest/test-sequencer

    • @jest/core, jest-cli, jest-config: Add option testSequencer allow user use custom sequencer.

  30. 24.6.0

    1 Apr 2019
    • : Improve report when matcher fails, part 13

    • @jest/core: Filter API pre-filter setup hook

    • jest-snapshot: Improve report when matcher fails, part 14

  31. 24.5.0

    12 Mar 2019
    • jest-haste-map: Expose throwOnModuleCollision via config.haste

  32. 24.3.0

    7 Mar 2019
    • removed

      expect: Remove duck typing and obsolete browser support code when comparing DOM nodes and use DOM-Level-3 API instead

    • security

      jest-cli: Fix prototype pollution vulnerability in dependency

    • : Improve report when matcher fails, part 10

  33. 24.0.0

    25 Jan 2019
    • breaking

      jest-each: Add primitive pretty printing for interpolated titles

    • breaking

      jest-diff: Support diffing numbers and booleans instead of returning null for different ones

    • breaking

      jest-diff: Replace diff with diff-sequences package

  34. 23.x
  35. 23.4.0

    10 Jul 2018
    • jest-haste-map: Add computeDependencies flag to avoid opening files if not needed

    • jest-runtime: Support require.resolve.paths

    • jest-runtime: Support paths option for require.resolve

  36. 23.3.0

    4 Jul 2018
    • jest-cli: Allow watch plugin to be configured

    • jest-snapshot: Introduce toMatchInlineSnapshot and toThrowErrorMatchingInlineSnapshot matchers

    • jest-regex-util: Improve handling already escaped path separators on Windows

  37. 23.2.0

    25 Jun 2018
    • jest-each: Add support for keyPaths in test titles

    • jest-cli: Add jest --init option that generates a basic configuration file with a short description for each option

    • jest.retryTimes: Add jest.retryTimes() option that allows failed tests to be retried n-times when using jest-circus.

  38. 23.1.0

    30 May 2018
    • jest-each: Add pretty-format serialising to each titles

    • jest-cli: shouldRunTestSuite watch hook now receives an object with config, testPath and duration

    • jest-each: Support one dimensional array of data

  39. 23.0.1

    27 May 2018
    • pretty-format: Serialize inverse asymmetric matchers correctly

  40. 23.0.0

    24 May 2018
    • breaking

      jest-snapshot: Concatenate name of test, optional snapshot name and count

    • breaking

      jest-jasmine2: Adds error throwing and descriptive errors to it/ test for invalid arguments. [jest-circus] Adds error throwing and descriptive errors to it/ test for invalid arguments

    • breaking

      jest-mock: Include tracked call results in serialized mock

  41. 22.x
  42. 22.4.3

    21 Mar 2018
  43. 22.4.1

    22 Feb 2018
    • removed

      babel-jest: Remove retainLines argument to babel.

    • jest-haste-map: Parallelize Watchman calls in crawler

    • jest-editor-support: Update TypeScript definitions

  44. 22.4.0

    20 Feb 2018
    • deprecated

      jest-runtime: Deprecate mapCoverage option.

    • jest-haste-map: Overhauls how Watchman crawler works fixing Windows

    • expect: Allow matching of Errors against plain objects

  45. 22.3.0

    13 Feb 2018
    • expect: Add descriptive error message to CalledWith methods when missing optional arguments

    • jest-cli: Fix inability to quit watch mode while debugger is still attached

    • jest-haste-map: Properly handle platform-specific file deletions

  46. 22.2.2

    9 Feb 2018
    • babel-jest: Revert "Remove retainLines from babel-jest"

    • jest-docblock: Support multiple of the same @pragma.

    • jest-worker: Assign a unique id for each worker and pass it to the child process. It will be available via process.env.JEST_WORKER_ID

  47. 22.2.0

    7 Feb 2018
    • jest-runner: Move test summary to after coverage report

    • jest-cli: Added --notifyMode to specify when to be notified.

    • diff-sequences: New package compares items in two sequences to find a longest common subsequence.

  48. 22.1.4

    19 Jan 2018
    • jest-util: Add "debug" method to "console" implementations

    • jest-resolve: Add condition to avoid infinite loop when node module package main is ".". (#5344))

    • jest-cli: --changedSince: allow selectively running tests for code changed since arbitrary revisions.

  49. 22.1.2

    17 Jan 2018
    • jest-cli: Check if the file belongs to the checked project before adding it to the list

    • jest-cli: Fix EISDIR when a directory is passed as an argument to jest.

    • jest-config: Added restoreMocks config option.

  50. 22.1.0

    15 Jan 2018
    • jest-cli: Make Jest exit without an error when no tests are found in the case of --lastCommit, --findRelatedTests, or --onlyChanged options having been passed to the CLI

    • jest-cli: Add interactive snapshot mode

    • jest-cli: Use import-local to support global Jest installations.

  51. 22.0.6

    11 Jan 2018
  52. 22.0.5

    9 Jan 2018
    • jest-leak-detector: Removed the reference to weak. Now, parent projects must install it by hand for the module to work.

    • expect: Fail test when the types of stringContaining and stringMatching matchers do not match.

    • jest-cli: Treat dumb terminals as noninteractive

  53. 22.0.4

    22 Dec 2017
    • jest-cli: New line before quitting watch mode.

    • babel-jest: moduleFileExtensions not passed to babel transformer.

  54. 22.0.2 – 22.0.32 releases with no change for you1 maintenance, 1 without a noteShow each
    • 22.0.319 Dec 2017no note
    • 22.0.219 Dec 2017docs, tests or tooling
  55. 22.0.1

    18 Dec 2017
    • jest-runtime: Fix error for test files providing coverage.

    • jest-config: Add forceCoverageMatch to allow collecting coverage from ignored files.