@jest/environment
30.5.2 · 18 Sep 2026MIT80.2M / weekRepositoryHomepagenpmAtom feed
96 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 27.x
27.4.1
30 Nov 2021jest-worker: Filter
execArgvcorrectly
27.4.0
29 Nov 2021expect: Enhancing the
toHavePropertymatcher to support array selectionjest-core: Add support for
testResultsProcessorwritten in ESMjest-diff, pretty-format: Add
compareKeysoption for custom sorting of object keys
Features
expect: Enhancing the
toHavePropertymatcher to support array selectionjest-core: Add support for
testResultsProcessorwritten in ESMjest-diff, pretty-format: Add
compareKeysoption for custom sorting of object keysjest-mock: Add
ts-jestmock util functions
Fixes
expect: Allow again
expect.Matchersgeneric with single valuejest-circus, jest-jasmine2: Avoid false concurrent test failures due to unhandled promise rejections
jest-config: Add missing
slashdependency topackage.jsonjest-core: Incorrect detection of open ZLIB handles
jest-diff: Break dependency cycle
jest-environment-jsdom: Add
@types/jsdomdependencyjest-environment-jsdom: Do not reset the global.document too early on teardown
jest-transform: Improve error and warning messages
jest-worker: Pass
execArgvcorrectly toworker_threadsworker
27.3.1
19 Oct 2021expect: Make
expectextension propertiesconfigurableexpect: Fix
.any()checks on primitive wrapper classes
Fixes
expect: Make
expectextension propertiesconfigurableexpect: Fix
.any()checks on primitive wrapper classes
27.3.0
17 Oct 2021jest-config: Add
testEnvironmentOptions.htmlto apply to jsdom inputjest-resolver: Support default export (
.) inexportsfield ifmainis missingexpect: Tweak and improve types
Features
jest-config: Add
testEnvironmentOptions.htmlto apply to jsdom inputjest-resolver: Support default export (
.) inexportsfield ifmainis missing
Fixes
expect: Tweak and improve types
jest-runtime: Ensure absolute paths can be resolved within test modules
jest-runtime: Fix
instanceofforModernFakeTimersandLegacyFakeTimersmethods
27.2.5
8 Oct 2021- Deprecated
@jest/types: Mark deprecated configuration options as
@deprecated jest-config: Warn when multiple Jest configs are located
Features
jest-config: Warn when multiple Jest configs are located
Fixes
expect: Pass matcher context to asymmetric matchers (#11926 & #11930)
expect: Improve TypeScript types
expect: Improve typings of
toThrow()andtoThrowError()matchersjest-cli: Improve
--helpprintout by removing defunct--browseroptionjest-haste-map: Use distinct cache paths for different values of
computeDependencies@jest/reporters: Do not buffer
console.logs when using verbose reporter
Chore & Maintenance
- Deprecated
@jest/types: Mark deprecated configuration options as
@deprecated
27.2.4
29 Sep 2021expect: Add equality checks for Array Buffers in
expect.ToStrictEqual()jest-snapshot: Correctly indent inline snapshots
27.2.3
28 Sep 2021jest-config: Parse
testEnvironmentOptionsif received from CLIjest-reporters: Call
destroyonv8-to-istanbulconverters to free memory
Fixes
jest-config: Parse
testEnvironmentOptionsif received from CLIjest-reporters: Call
destroyonv8-to-istanbulconverters to free memory
27.2.2
25 Sep 2021jest-runtime: Correct
wrapperLengthvalue for ESM modules.
27.2.0
13 Sep 2021jest-resolver, jest-runtime: Pass
conditionsto custom resolvers to enable them to implement support for package.jsonexportsfieldjest-runtime: Allow custom envs to specify
exportConditionswhich is passed together with Jest's own conditions to custom resolvers@jest/reporters: Use async transform if available to transform files with no coverage
Features
jest-resolver, jest-runtime: Pass
conditionsto custom resolvers to enable them to implement support for package.jsonexportsfieldjest-runtime: Allow custom envs to specify
exportConditionswhich is passed together with Jest's own conditions to custom resolvers
Fixes
@jest/reporters: Use async transform if available to transform files with no coverage
jest-util: Return correct value from
process.sendstub
27.1.1
8 Sep 2021jest-runtime: Add experimental, limited (and undocumented) support for mocking ECMAScript Modules
jest-resolver: Support
node:prefix when importing Node core modules with ESMjest-types: Export the
PrettyFormatOptionsinterface
27.1.0
27 Aug 2021jest-haste-map: Use watchman suffix-set option for faster file indexing.
jest-cli: Adds a new config options
snapshotFormatwhich offers a way to override any of the formatting settings which come with pretty-format.jest-reporters: Expose the
getSummaryutil (#11695).
Features
jest-haste-map: Use watchman suffix-set option for faster file indexing.
jest-cli: Adds a new config options
snapshotFormatwhich offers a way to override any of the formatting settings which come with pretty-format.jest-reporters: Expose the
getSummaryutil (#11695).jest-resolver: Support
node:prefix when importing Node core modules
Fixes
jest-each: Relaxed the validation to allow multibyte characters in headings
jest-environment-jsdom: Add support for
userAgentoptionjest-environment-node: Add
EventandEventTargetto node global environment.jest-mock: Fix
spyOnto useObject.prototype.hasOwnPropertyjest-resolver: Add dependency on
jest-haste-mapjest-types: Compat with
@types/nodev16
27.0.6
28 Jun 2021*: Publish all modules to include the build change
27.0.5
22 Jun 2021@jest/fake-timers: Flush callbacks scheduled with
requestAnimationFrameevery 16ms when using legacy timers.pretty-format: Use
globalThis(with polyfill if required) to bring support for esbuild's browser bundling mode (#11569jest-core: Support special characters like
@,+and()on Windows with--findRelatedTests
Features
@jest/fake-timers: Flush callbacks scheduled with
requestAnimationFrameevery 16ms when using legacy timers.pretty-format: Use
globalThis(with polyfill if required) to bring support for esbuild's browser bundling mode (#11569
Fixes
jest-core: Support special characters like
@,+and()on Windows with--findRelatedTests@jest/fake-timers: Do not add
setImmediateandclearImmediateif they do not exist in the global environment@jest/reporters: Allow
node-notifier@10as peer dependency@jest/reporters: Update
v8-to-istanbul
27.0.3
29 May 2021jest-config:
require.resolveon default test sequencer and test environmentjest-mock: Fixed
fnandspyOnexports
27.0.2
29 May 2021jest-circus: Add some APIs to make it easier to build your own test runner
jest-reporters: Expose the
getResultHeaderutiljest-resolver: Export
resolve*utils for different Jest modules
Features
jest-circus: Add some APIs to make it easier to build your own test runner
jest-reporters: Expose the
getResultHeaderutiljest-resolver: Export
resolve*utils for different Jest modules@jest/test-result: Export
Test,TestEventsandTestFileEvent
Fixes
jest-circus: Add missing
slashdependencyjest-circus, @jest/test-sequencer: Remove dependency on
jest-runnerjest-config: Resolve
config.runnerto absolute pathjest-config: Make sure to support functions as config
jest-core: Do not warn about
DNSCHANNELhandles when using the--detectOpenHandlesoptionjest-runner: Remove dependency on
jest-configjest-worker: Loosen engine requirement to
>= 10.13.0
27.0.1
25 May 2021jest-environment-jsdom: Bump version of JSDOM to avoid deprecated
requestpackage
27.0.0
25 May 2021- Breaking
jest-circus: Fail tests when multiple
done()calls are made - Breaking
jest-circus, jest-jasmine2: Fail the test instead of just warning when describe returns a value
- Breaking
jest-config: Default to Node testing environment instead of browser (JSDOM)
Features
babel-jest: Add async transformation
jest-changed-files: Use '--' to separate paths from revisions
- Breaking
jest-circus: Fail tests when multiple
done()calls are made - Breaking
jest-circus, jest-jasmine2: Fail the test instead of just warning when describe returns a value
- Breaking
jest-config: Default to Node testing environment instead of browser (JSDOM)
- Breaking
jest-config: Use
jest-circusas default test runner jest-config: Add support for
presetwritten in ESMjest-config, jest-runtime: Support ESM for files other than
.jsand.mjs- Breaking
jest-config, jest-runtime: Use "modern" implementation as default for fake timers (#10874 & #11197)
[jest-configAllow passingforceNodeFilesystemAPIthrough tojest-haste-map- Breaking
[jest-config, jest-haste-map, jest-resolve, jest-runner, jest-runtime, jest-test-sequencer, jest-transform, jest-types]Add custom HasteMap class implementation config option jest-core: Make
TestWatcherextendemitteryjest-core: Run failed tests interactively the same way we do with snapshots
jest-core: More
TestSequencermethods can be asyncjest-core: Add support for
testSequencerwritten in ESMjest-core: Add support for
globalSetupandglobalTeardownwritten in ESMjest-core: Add support for
watchPluginswritten in ESMjest-core: Add support for
runnerwritten in ESMjest-core: Add support for
reporterswritten in ESMjest-each: Add support for interpolation with object properties
jest-environment-node: Add AbortController to globals
@jest/fake-timers: Update to
@sinonjs/fake-timersto v7jest-haste-map: Handle injected scm clocks
jest-haste-map: Add
enableSymlinksconfiguration option to follow symlinks for test files- Breaking
jest-repl, jest-runner: Run transforms over environment
jest-repl: Add support for
testEnvironmentwritten in ESM- Breaking
jest-runner: Set exit code to 1 if test logs after teardown
- Breaking
jest-runner: Run transforms over
runnner - Breaking
jest-runner: Run transforms over
testRunnner jest-runner: Possibility to use ESM for test environment (11033)
jest-runner: Add support for
testRunnerwritten in ESMjest-runtime: Detect reexports from CJS as named exports in ESM
jest-runtime: Support for async code transformations (#11191 & #11220)
jest-reporters: Add static filepath property to all reporters
- Breaking
jest-snapshot: Make prettier optional for inline snapshots - fall back to string replacement (#7792 & #11192)
- Breaking
jest-snapshot: Run transforms over
snapshotResolver jest-transform: Pass config options defined in Jest's config to transformer's
processandgetCacheKeyfunctionsjest-transform: Add support for transformers written in ESM
- Breaking
jest-transform: Do not export
ScriptTransformerclass, instead export the async functioncreateScriptTransformer jest-transform: Async code transformations
jest-transform: Support transpiled transformers
- Breaking
jest-transform:
requireAndTranspileModulealways return aPromise, and the third parameter type is changed toRequireAndTranspileModuleOptionswhich acceptapplyInteropRequireDefaultoption - Breaking
jest-transform:
createTranspilingRequirereturn function which return aPromisenow jest-util: Add requireOrImportModule for importing CJS or ESM
jest-util: Add
applyInteropRequireDefaultoption onrequireOrImportModulejest-watcher: Added support for clearing the line when
<C-u>is pressed in a watch mode pattern promptjest-worker: Add support for custom task queues and adds a
PriorityQueueimplementation.jest-worker: Add in-order scheduling policy to jest worker (10902)
pretty-format: Better print for sparse arrays (11326)
pretty-print: Add option
printBasicPrototypewhich determines whether or not the prototype should be printed for raw objects or arrays
Fixes
babel-plugin-jest-hoist: Add
__dirnameand__filenameto whitelisted globals- Breaking
expect: Revise
expect.not.objectContaining()to be the inverse ofexpect.objectContaining(), as documented. - Breaking
expect: Make
toContainmore strict with the received type (#10119 & #10929) - Breaking
expect:
matcherResultonJestAssertionErrorare now strings rather than functions jest-circus: Fixed the issue of beforeAll & afterAll hooks getting executed even if it is inside a skipped
describeblock #10451jest-circus: Fix
testLocationon Windows when usingtest.eachjest-cli: Use testFailureExitCode when bailing from a failed test
jest-cli: Print custom error if error thrown from global hooks is not an error already
jest-cli: Allow running multiple "projects" from programmatic API
jest-cli: Fix missing collectCoverage after init
jest-cli, jest-config, jest-types: Move all default values into
jest-config- Breaking
jest-config: Change default file extension order by moving json behind ts and tsx (10572)
jest-console:
console.dirnow respects the second argument correctlyjest-core: Don't report PerformanceObserver as open handle
jest-core: Use
WeakRefto hold timers when detecting open handlesjest-core: Correctly detect open handles that were created in test functions using
donecallbacksjest-core: Do not collect
RANDOMBYTESREQUESTas open handlesjest-core: Wait briefly for open handles to close before flagging them when using
--detectOpenHandles- Breaking
jest-diff: Use only named exports
- Breaking
jest-each: Ignore excess words in headings
jest-each: Support array index with template strings
jest-each: Interpolate
%%correctlyjest-each: Fix wrong interpolation when the value of array contains multiple
%- Breaking
jest-environment: Drop support for
runScriptfor test environments jest-environment-jsdom: Use inner realm’s
ArrayBufferconstructor- Breaking
jest-environment-jsdom: Remove Node globals
setImmediateandclearImmediate#11222 - Breaking
jest-get-type: Convert to ES Module
- Breaking
jest-globals: Disallow return values other than a
Promisefrom hooks and tests - Breaking
jest-globals: Disallow mixing a done callback and returning a
Promisefrom hooks and tests jest-haste-map: Vendor
NodeWatcherfromsanejest-jasmine2: Fixed the issue of
beforeAll&afterAllhooks getting executed even if it is inside a skippeddescribeblock when it has childtestsmarked as eitheronlyortodo#10451jest-jasmine2: Fixed the issues of child
testsmarked withonlyortodogetting executed even if it is inside a skipped parentdescribeblock #10451jest-jasmine2: Wrap all test functions so they open handles that were created in test functions using
donecallbacks can be detectedjest-reporter: Handle empty files when reporting code coverage with V8
jest-resolve: Replace read-pkg-up with escalade package
jest-resolve: Disable
jest-pnp-resolverfor Yarn 2- Breaking
jest-runtime: Do not inject
globalvariable into module wrapper - Breaking
jest-runtime: Remove long-deprecated
jest.addMatchers,jest.resetModuleRegistry, andjest.runTimersToTime jest-runtime: Fix stack overflow and promise deadlock when importing mutual dependant ES module
jest-runtime: Prevent global module registry from leaking into
isolateModulesregistryjest-runtime: Refactor to prevent race condition when linking and evaluating ES Modules
jest-runtime: Throw correct error when attempting to load ESM via
requirejest-runtime: Do not cache modules that throw during evaluation
jest-transform: Show enhanced
SyntaxErrormessage for allSyntaxErrors- Breaking
jest-transform: Refactor API to pass an options bag around rather than multiple boolean options
- Breaking
jest-transform: Refactor API of transformers to pass an options bag rather than separate
configand other options jest-types: Fix
Config.tsprojectstypesjest-util: Replace micromatch with picomatch to fix issues with negated globs
jest-validate: Use
en-USlocale to avoid case conversion problems while validating CLI options on machines with some certain locales(e.g. Turkish) set as default locale.- Breaking
jest-worker: Use named exports
jest-worker: Do not swallow errors during serialization
jest-worker: Handle
ERR_IPC_CHANNEL_CLOSEDerrors properly- Breaking
pretty-format: Convert to ES Modules
pretty-format: Only call
hasAttributeif it's a functionpretty-format: Handle jsdom attributes properly
pretty-format: Import pretty-format using named imports
Chore & Maintenance
- Breaking
*: Only support Node LTS releases and Node 15
- Breaking
*: Add
exportsfield to allpackage.jsons - Breaking
*: Remove deprecated
mapCoverage - Breaking
babel-jest: Migrate to ESM
- Breaking
jest, jest-core: Replace
TestSchedulerexport withcreateTestScheduler - Breaking
jest-config: Remove
enabledTestsMapconfig, usefilterinstead - Breaking
jest-console: Move
rootintoconfigand takeGlobalConfigas mandatory parameter forgetConsoleOutput - Breaking
jest-haste-map: Migrate to ESM
- Breaking
jest-haste-map: Remove support for deprecated option
ignorePatternas function - Breaking
jest-jasmine2: Migrate to ESM
- Breaking
jest-jasmine2: Remove unused options argument from
Envconstructor - Breaking
jest-repl, jest-runtime: Move the
jest-runtimeCLI intojest-repl(#10016 & #10925) - Breaking
jest-resolve: Migrate to ESM
- Breaking
jest-resolve-dependencies: Migrate to ESM
- Breaking
jest-mock: Migrate to ESM
- Breaking
jest-reporters: Make
node-notifiera peer dependency - Breaking
jest-resolve, jest-runtime: Use
Maps instead of objects for all cached resources - Breaking
jest-runner: Migrate to ESM
- Breaking
jest-runtime: Remove deprecated and unused
getSourceMapInfofrom Runtime - Breaking
jest-transformer: Remove unused
isCoreModuleoption - Breaking
jest-validate: Remove
recursiveBlacklistoption in favor of previously introducedrecursiveDenylist
Performance
jest-resolve: Cache reading and parsing of
package.jsonsjest-runtime, jest-transform: Share
cacheFSbetween runtime and transformerjest-runtime: Load
chalkonly once per workerjest-worker: Fix memory leak of previous task arguments while no new task is scheduled
- 26.x
26.6.2
2 Nov 2020jest-core: Add
findRelatedTestsandnonFlagArgsin allowed config options forupdateConfigAndRunin watch pluginsbabel-plugin-jest-hoist: Preserve order of hoisted mock nodes within containing block
babel-plugin-jest-hoist: Hoist pure constants to support experimental JSX transform in hoisted mocks
Features
jest-core: Add
findRelatedTestsandnonFlagArgsin allowed config options forupdateConfigAndRunin watch plugins
Fixes
babel-plugin-jest-hoist: Preserve order of hoisted mock nodes within containing block
babel-plugin-jest-hoist: Hoist pure constants to support experimental JSX transform in hoisted mocks
babel-preset-jest: Update
babel-preset-current-node-syntaxto support top level awaitexpect: Revert "Fix
objectContainingto work recursively into sub-objects (#10508)"jest-circus, jest-jasmine2: Don't assume
stackis always a stringjest-config: Fix bug introduced in watch mode by PR #10678
jest-config: Throw correct error for missing preset modules
jest-resolve-dependencies: Resolve mocks as dependencies
jest-runtime: Handle file URLs in dynamic imports
jest-runtime, babel-jest: Pass more ESM options to
@jest/transformjest-runtime: Properly inject
extraGlobalsinto the runtimejest-transform: Link to ESM docs on syntax errors
26.6.1
23 Oct 2020jest-runtime: Support named exports from CommonJS as named ES Module imports
jest-validate: Add support for
recursiveDenylistoption as an alternative torecursiveBlacklistexpect: Fix
objectContainingto work recursively into sub-objects
Features
jest-runtime: Support named exports from CommonJS as named ES Module imports
jest-validate: Add support for
recursiveDenylistoption as an alternative torecursiveBlacklist
Fixes
expect: Fix
objectContainingto work recursively into sub-objectsjest-cli, jest-core, jest-config, jest-types: Fix
--onlyFailuresflag to work in non-watch modejest-config: Fix for the
jest.config.tscompiler to not interfere withtsconfig.jsonfilesjest-message-util: Update to work properly with Node 15
jest-mock: Allow to mock methods in getters (TypeScript 3.9 export)
26.6.0
19 Oct 2020jest-cli, jest-config: Add support for the
jest.config.tsconfiguration filejest-config: Simplify transform RegExp
jest-fake-timers: Lazily instantiate mock timers
Features
jest-cli, jest-config: Add support for the
jest.config.tsconfiguration file
Fixes
jest-config: Simplify transform RegExp
jest-fake-timers: Lazily instantiate mock timers
jest-runtime:
require.mainis no longerundefinedwhen usingjest.resetModules@jest/types: Add missing values for
timers
26.5.2
6 Oct 2020*: Revert usage of Escalade and rollback Yargs to v15 as it breaks Node 13
jest-circus: Setup globals before emitting
setup, and include Jest globals in thesetuppayloadjest-mock: Fix typings for
mockResolvedValue,mockResolvedValueOnce,mockRejectedValueandmockRejectedValueOnce
26.5.0
5 Oct 2020jest-circus, jest-config, jest-runtime: Add new
injectGlobalsconfig and CLI option to disable injecting global variables into the runtimejest-each: Fixes
.eachtype to always be callablejest-runner: Add support for
moduleLoaders withdefaultexports
Features
jest-circus, jest-config, jest-runtime: Add new
injectGlobalsconfig and CLI option to disable injecting global variables into the runtimejest-each: Fixes
.eachtype to always be callablejest-runner: Add support for
moduleLoaders withdefaultexports@jest/create-cache-key-function: Added a new package for creating cache keys
Fixes
jest-circus, jest-jasmine2: Find correct location for
test.eachtestsjest-console: Add
Consoleconstructor toconsoleobjectjest-globals: Fix lifecycle hook function types
jest-runtime: Remove usage of
vm.compileFunctiondue to a performance issue
26.3.0
10 Aug 2020- Breaking
jest-worker: Downgrade minimum node version to 10.13
jest-circus, jest-jasmine2: Include
failureDetailsproperty in test resultsjest-each, jest-jasmine, jest-circus: Add support for
.concurrent.each
Features
jest-circus, jest-jasmine2: Include
failureDetailsproperty in test resultsjest-each, jest-jasmine, jest-circus: Add support for
.concurrent.each
Fixes
jest-config: Add
.pnp.jstotransformIgnorePatternsdefaultsjest-leak-detector: Wait properly for GC runs due to changes in Node 14.7
- Breaking
jest-worker: Downgrade minimum node version to 10.13
26.2.0
30 Jul 2020[jest-core, jest-circus, jest-reporter, jest-runner]Added support for reporting individual test cases using jest-circus[jest-config, jest-reporter, jest-runner, jest-test-sequencer]AddslowTestThresholdconfiguration optionjest-haste-map: Watchman crawler now includes dotfiles
Features
[jest-core, jest-circus, jest-reporter, jest-runner]Added support for reporting individual test cases using jest-circus[jest-config, jest-reporter, jest-runner, jest-test-sequencer]AddslowTestThresholdconfiguration optionjest-haste-map: Watchman crawler now includes dotfiles
jest-worker: Added support for workers to send custom messages to parent in jest-worker
jest-worker: Support passing
resourceLimitspretty-format: Added support for serializing custom elements (web components)
Fixes
expect: Match symbols and bigints in
any()jest-changed-files: Use
git diffinstead ofgit logfor--changedSincejest-console: Add missing
console.timeLogfor compatibility with Nodejest-haste-map: Check
findbinary supports the-inameparameterjest-snapshot: Strip added indentation for inline error snapshots
26.1.0
23 Jun 2020jest-mock: Export
Mock,MockInstance,SpyInstancetypesjest-config: Support config files exporting (
async)functionsjest-cli, jest-core: Add
--selectProjectsCLI argument to filter test suites by project name
Features
jest-mock: Export
Mock,MockInstance,SpyInstancetypesjest-config: Support config files exporting (
async)functionsjest-cli, jest-core: Add
--selectProjectsCLI argument to filter test suites by project namejest-cli, jest-init: Add
coverageProvidertojest --initprompts
Fixes
jest-console:
getConsoleOutputto receive global stack trace config and use it to format stack tracejest-jasmine2: Stop adding
:after an error that has no messagejest-diff: Control no diff message color with
commonColorin diff optionsjest-snapshot: Fix TypeScript compilation
Performance
jest-core, jest-transform, jest-haste-map: Improve Jest startup time and test runtime, particularly when running with coverage, by caching micromatch and avoiding recreating RegExp instances
26.0.1
5 May 2020jest-circus: Backward compatibility for deprecated
DescribeBlock.teststo not break e.g. Detox reporter
26.0.0
4 May 2020- Breaking
jest-environment-jsdom: Upgrade
jsdomto v16 - Breaking
jest-circus: Fail tests if a test takes a done callback and have return values
- Breaking
jest-circus: Throw a proper error if a test / hook is defined asynchronously
Features
- Breaking
jest-environment-jsdom: Upgrade
jsdomto v16 @jest/fake-timers: Add possibility to use a modern implementation of fake timers, backed by
@sinonjs/fake-timersjest-runtime: Add
createMockFromModuleas an alias forgenMockFromModule
Fixes
babel-jest: Handle
nullbeing passed tocreateTransformer[jest-circus, jest-console, jest-jasmine2, jest-reporters, jest-util, pretty-format]Fix time durating formatting and consolidate time formatting code- Breaking
jest-circus: Fail tests if a test takes a done callback and have return values
- Breaking
jest-circus: Throw a proper error if a test / hook is defined asynchronously
jest-circus: Throw more descriptive error if hook is defined inside test
- Breaking
jest-circus: Align execution order of tests to match
jasmine's top to bottom order - Breaking
jest-config, jest-resolve: Remove support for
browserfield jest-haste-map: Stop reporting files as changed when they are only accessed
jest-resolve: Show relative path from root dir for
module not founderrorsjest-runtime: Fix absolute path moduleNameMapper + jest.mock bug
Chore & Maintenance
- Breaking
*: TypeScript definitions requires a minimum of TypeScript v3.8
- Breaking
*: Drop support for Node 8
- Breaking
expect, jest-mock, pretty-format: Remove
build-es5from package - Breaking
@jest/fake-timers, @jest/environment: Rename
LolexFakeTimerstoModernFakeTimers - Breaking
jest-haste-map: Removed
providesModuleNodeModules - Breaking
jest-runtime: Remove long-deprecated
require.requireActualandrequire.requireMockmethods
- 25.x
25.5.0
28 Apr 2020@jest/globals: New package so Jest's globals can be explicitly imported
jest-core: Show coverage of sources related to tests in changed files
jest-runtime: Populate
require.cache
Features
@jest/globals: New package so Jest's globals can be explicitly imported
jest-core: Show coverage of sources related to tests in changed files
jest-runtime: Populate
require.cache
Fixes
*: Use
graceful-fsdirectly in every package instead of relying onfsbeing monkey patchedexpect: Prints the Symbol name into the error message with a custom asymmetric matcher
jest-circus, jest-jasmine2: Support older version of
jest-runtime(#9903 & #9842)@jest/environment: Make sure not to reference Jest types
jest-message-util: Code frame printing should respect
--noStackTraceflagjest-runtime: Support importing CJS from ESM using
importstatementsjest-runtime: Support importing parallel dynamic
importsjest-transform: Improve source map handling when instrumenting transformed code
Performance
jest-resolve: Update
resolveto a version using nativerealpath, which is faster than the default JS implementationjest-resolve: Pass custom cached
realpathfunction toresolvejest-runtime: Add
teardownmethod to clear any caches when tests completejest-runtime: Do not pass files required internally through transformation when loading them
jest-runtime: Use
Maps instead of object literals as cache holders
25.4.0
19 Apr 2020expect: Support
async functions intoThrowjest-console: Add code frame to
console.errorandconsole.warn
expect: Support
async functions intoThrowjest-console: Add code frame to
console.errorandconsole.warnjest-runtime, jest-jasmine2, jest-circus: Experimental, limited ECMAScript Modules support (#9772 & #9842)
Fixes
expect: Restore support for passing functions to
toHaveLengthmatcherjest-changed-files:
--only-changedshould include staged filesjest-circus: Throw on nested test definitions
jest-each:
eachwill throw an error when called with too many argumentsjest-runner: Don't print warning to stdout when using
--json
25.3.0
8 Apr 2020babel-jest: Support passing
supportsDynamicImportandsupportsStaticESMbabel-preset-jest: Enable all syntax plugins not enabled by default that works on current version of Node
jest-circus: Enable writing async test event handlers
Features
babel-jest: Support passing
supportsDynamicImportandsupportsStaticESMbabel-preset-jest: Enable all syntax plugins not enabled by default that works on current version of Node
jest-circus: Enable writing async test event handlers
jest-runtime, @jest/transformer: Support passing
supportsDynamicImportandsupportsStaticESM
25.2.6
2 Apr 2020Reading the note…
25.2.4
29 Mar 2020Reading the note…
25.2.3
26 Mar 2020Reading the note…
25.2.1
26 Mar 2020Reading the note…
25.2.0
25 Mar 2020Reading the note…
25.1.0
22 Jan 2020Reading the note…
25.0.0
22 Aug 2019Reading the note…
- 24.x
24.9.0
16 Aug 2019Reading the note…
24.8.0
5 May 2019Reading the note…
24.7.1
4 Apr 2019Reading the note…
24.7.0
3 Apr 2019Reading the note…
24.6.0
1 Apr 2019Reading the note…
24.5.0
12 Mar 2019Reading the note…
24.4.0
11 Mar 2019Reading the note…
24.3.1
7 Mar 2019Reading the note…
24.3.0
7 Mar 2019Reading the note…
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.