Packages

jest-util

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

Your version

22.2.0

7 Feb 2018Where it was published

22.4.3 is the newest release of 22.x.

In short

11 new10 fixed2 internal

Release note

Features

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

  • jest-matcher-utils: Add comment option to matcherHint function

  • jest-config: Allow lastComit and changedFilesWithAncestor via JSON config

  • jest-util: Add deletion to process.env as well

  • jest-util: Add case-insensitive getters/setters to process.env

  • jest-mock: Add util methods to create async functions.

Fixes

  • jest-cli: Add trailing slash when checking root folder

  • jest-cli: Hide interactive mode if there are no failed snapshot tests

  • babel-jest: Remove retainLines from babel-jest

  • jest-cli: Glob patterns ignore non-require-able files (e.g. README.md)

  • jest-mock: Add backticks support (``) to mock a certain package via the __mocks__ folder.

  • jest-message-util: Prevent an ENOENT crash when the test file contained a malformed source-map. (#5405).

  • jest: Add import-local to jest package.

  • expect: Support class instances in .toHaveProperty() and .toMatchObject matcher.

  • jest-cli: Fix npm update command for snapshot summary. (#5376, 5389)

  • expect: Make rejects and resolves synchronously validate its argument.

  • jest-resolve: Search required modules in node_modules and then in custom paths.

  • jest-resolve: Get builtin modules from node core.

  • jest-resolve: Detect and preserve absolute paths in moduleDirectories. Do not generate additional (invalid) paths by prepending each ancestor of cwd to the absolute path. Additionally, this fixes functionality in Windows OS.