Packages

jest-util

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

Your version

23.2.0

25 Jun 2018Where it was published

23.4.0 is the newest release of 23.x.

In short

5 new6 fixed2 internal

Release note

Features

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

Fixes

  • jest-cli: Add check to make sure one or more tests have run before notifying when using --notify

  • jest-cli: Pass globalConfig as a parameter to globalSetup and globalTeardown functions

  • jest-config: Add missing options to the defaults object

  • expect: Using symbolic property names in arrays no longer causes the toEqual matcher to fail

  • expect: toEqual no longer tries to compare non-enumerable symbolic properties, to be consistent with non-symbolic properties.

  • jest-util: console.timeEnd now properly log elapsed time in milliseconds.

  • jest-mock: Fix MockNativeMethods access in react-native jest.mock()

  • jest-cli: Fix reporters for moduleName = 'default'