Packages

jest-util

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

Your version

12.1.0

20 May 2016Where it was published

In short

7 new2 fixed5 changed

Release note

  • Jest is now also published in the jest package on npm.

  • Added testRegex to match for tests outside of specific folders. Deprecated both testDirectoryName and testFileExtensions.

  • it can now return a Promise for async testing. pit was deprecated.

  • Added jest-resolve as a standalone package based on the Facebook module resolution algorithm.

  • Added jest-changed-files as a standalone package to detect changed files in a git or hg repo.

  • Added --setupTestFrameworkFile to cli.

  • Added support for coverage thresholds. See jestjs.io/docs/en/configuration.

  • Updated to jsdom 9.0.

  • Updated and improved stack trace reporting.

  • Added module.filename and removed the invalid module.__filename field.

  • Further improved the lastCalledWith and toBeCalledWith custom matchers. They now print the most recent calls.

  • Fixed jest-haste-map on continuous integration systems.

  • Fixes for hg/git integration.

  • Added a re-try for the watchman crawler.