NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #923 most downloaded on npm
Delightful JavaScript Testing.
Last release 9 days ago
18 Sep 2026
Release timing varies
gaps range from 8 days to 5 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
419 releases · first in 2014
Fixed issues with test paths that include hyphens on Windows.
testEnvironment resolution.Pretty printer updates for React and global window objects.
jest-runtime overwrites automocking from configuration files.One column per quarter.
Fixed Jest with npm2 when using coverage.
Updated toThrow and toThrowMatchers and aliased them to the same matcher.
--bail option.See https://jestjs.io/blog/2016/09/01/jest-15.html
.spec.js and .test.js as test files.--env option to override the default test environment.--watchAll, made --watch interactive and added the ability to update snapshots and select test patterns in watch mode.testEnvironment resolution to prefer jest-environment-{name} instead of {name} only. This prevents a module colision when using jsdom as test environment.moduleNameMapper now uses a resolution algorithm.global.global to the node environment.mock.collectCoverageFrom to collect code coverage from untested files.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Changed Jest's default cache directory.
jest-react-native for react 15.3.0.react-test-renderer.babel-jest can now be used to compose a transformer.
babel-jest can now be used to compose a transformer.jest -u or npm test -- -u.config cli option to enable JSON objects as configuration.Official release of snapshot tests.
toBe, toBeFalsy, toBeTruthy, toBeNaN, toBe{Greater,Less}Than{,OrEqual}, toBeNull, toBeDefined, toBeUndefined, toContain, toMatch, toBeCloseTo were rewritten.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
- Snapshot bugfixes. - Timer bugfixes.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added test global function as an alias for it.
test global function as an alias for it.coveragePathIgnorePatterns to the config.--verbose option and top level it calls.require('jest-check').jest.deepUnmock.Added duration of individual tests in verbose mode.
browser config option to properly resolve npm packages with a browser field in package.json if you are writing tests for client side appsjest-repl.jest-cli into jest-runtime and jest-config.--notify.TestRunner into SearchSource and improved the "no tests found" message.jest.isMockFunction(jest.fn()) to test for mock functions.jest.mock('Module', implementation, {virtual: true}).toMatchSnapshot().Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Remove test files from code coverage.
Nothing published for this version
Added testRegex to match for tests outside of specific folders. Deprecated both testDirectoryName and testFileExtensions.
jest package on npm.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.jest-resolve as a standalone package based on the Facebook module resolution algorithm.jest-changed-files as a standalone package to detect changed files in a git or hg repo.--setupTestFrameworkFile to cli.module.filename and removed the invalid module.__filename field.lastCalledWith and toBeCalledWith custom matchers. They now print the most recent calls.Bug fixes when running a single test file and for scoped package names.
Added custom equality matchers for Map/Set and iterables.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
jest now uses chalk instead of its own colors implementation.
chalk instead of its own colors implementation.--bail now reports with the proper error code.
--bail now reports with the proper error code.Added optional support for jasmine2 through the testRunner config option.
testRunner config option.node was added to the defaults in moduleFileExtensions.Correctly map process.on into jsdom environments, fixes a bug introduced in jest 0.7.0.
process.on into jsdom environments, fixes a bug introduced in jest 0.7.0.Removed mock-modules, node-haste and mocks virtual modules. This is a breaking change of undocumented public API. Usage of this API can safely be auto…
--logHeapUsage to log memory usage after each test. Note: this is option is meant for debugging memory leaks and might significantly slow down your test run.mock-modules, node-haste and mocks virtual modules. This is a breaking change of undocumented public API. Usage of this API can safely be automatically updated through an automated codemod:navigator.onLine and mockSetReadOnlyProperty from the global jsdom environment. Use window.navigator.onLine = true; in your test setup and Object.defineProperty instead.Use the current working directory as root when passing a jest config from the command line.
module.parent field so unmocked modules don't assume they are run directly any longer.jest now reports the number of tests that were run instead of the number of test files.
--json option to print test results as JSON.toEqual now also checks the internal class name of an object. This fixes invalid tests like expect([]).toEqual({}) which were previously passing.moduleNameMapper config option.testRunner in the configuration (#531).--no-cache option to make it easier to debug preprocessor scripts.Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →