Packages

jest

30.5.2 · 18 Sep 2026MIT62.9M / weekRepositoryHomepagenpmAtom feed

Your version

23.1.0

30 May 2018Where it was published

23.6.0 is the newest release of 23.x.

In short

6 new8 fixed6 internal

Release note

Features

  • 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

  • jest-watch: Create new package jest-watch to ease custom watch plugin development

  • jest-circus: Make hooks in empty describe blocks error

  • Add a config/CLI option errorOnDeprecated which makes calling deprecated APIs throw hepful error messages

Fixes

  • jest-each: Fix pluralising missing arguments error

  • jest-each: Stop test title concatenating extra args

  • expect: toHaveBeenNthCalledWith/nthCalledWith gives wrong call messages if not matched

  • jest-each: Make sure invalid arguments to each points back to the user's code

  • expect: toMatchObject throws TypeError when a source property is null

  • jest-cli: Normalize slashes in paths in CLI output on Windows

  • jest-cli: Fix run beforeAll in excluded suites tests" mode.

  • [jest-haste-map] Compute SHA-1s for non-tracked files when using Node crawler

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.