jest-util
30.5.1 · 1 Sep 2026MIT156.2M / weekRepositoryHomepagenpmAtom feed
15.1.1 is the newest release of 15.x.
In short
4 new2 fixed12 changed2 internal
Release note
Jest by default now also recognizes files ending in
.spec.jsand.test.jsas test files.Completely replaced most Jasmine matchers with new Jest matchers.
Rewrote Jest's CLI output for test failures and summaries.
Added
--envoption to override the default test environment.Disabled automocking, fake timers and resetting the module registry by default.
Added
--watchAll, made--watchinteractive and added the ability to update snapshots and select test patterns in watch mode.Jest uses verbose mode when running a single test file.
Console messages are now buffered and printed along with the test results.
Fix
testEnvironmentresolution to preferjest-environment-{name}instead of{name}only. This prevents a module colision when usingjsdomas test environment.moduleNameMappernow uses a resolution algorithm.Improved performance for small test runs.
Improved API documentation.
Jest now works properly with directories that have special characters in them.
Added
global.globalto the node environment.Fixed babel-jest-plugin-hoist issues with functions called
mock.Improved jest-react-native preset with mocks for ListView, TextInput, ActivityIndicator and ScrollView.
Added
collectCoverageFromto collect code coverage from untested files.Rewritten code coverage support.