jest-mock
Advanced tools
Changelog
27.4.6
[jest-environment-node]
Add AbortSignal
(#12157)[jest-environment-node]
Add Missing node global performance
(#12002)[jest-runtime]
Handle missing mocked
property (#12213)[@jest/transform]
Update dependency package pirates
to 4.0.4 (#12002)jest-config
perf: only register ts-node once when loading TS config files (#12160)Changelog
27.4.0
[expect]
Enhancing the toHaveProperty
matcher to support array selection (#12092)[jest-core]
Add support for testResultsProcessor
written in ESM (#12006)[jest-diff, pretty-format]
Add compareKeys
option for custom sorting of object keys (#11992)[jest-mock]
Add ts-jest
mock util functions (#12089)[expect]
Allow again expect.Matchers
generic with single value (#11986)[jest-circus, jest-jasmine2]
Avoid false concurrent test failures due to unhandled promise rejections (#11987)[jest-config]
Add missing slash
dependency to package.json
(#12080)[jest-core]
Incorrect detection of open ZLIB handles (#12022)[jest-diff]
Break dependency cycle (#10818)[jest-environment-jsdom]
Add @types/jsdom
dependency (#11999)[jest-environment-jsdom]
Do not reset the global.document too early on teardown (#11871)[jest-transform]
Improve error and warning messages (#11998)[jest-worker]
Pass execArgv
correctly to worker_threads
worker (#12069)Changelog
27.2.5
[jest-config]
Warn when multiple Jest configs are located (#11922)[expect]
Pass matcher context to asymmetric matchers (#11926 & #11930)[expect]
Improve TypeScript types (#11931)[expect]
Improve typings of toThrow()
and toThrowError()
matchers (#11929)[jest-cli]
Improve --help
printout by removing defunct --browser
option (#11914)[jest-haste-map]
Use distinct cache paths for different values of computeDependencies
(#11916)[@jest/reporters]
Do not buffer console.log
s when using verbose reporter (#11054)Changelog
27.1.0
[jest-haste-map]
Use watchman suffix-set option for faster file indexing. (#11784)[jest-cli]
Adds a new config options snapshotFormat
which offers a way to override any of the formatting settings which come with pretty-format. (#11654)[jest-reporters]
Expose the getSummary
util (#11695).[jest-resolver]
Support node:
prefix when importing Node core modules (#11331)[jest-each]
Relaxed the validation to allow multibyte characters in headings (#11575)[jest-environment-jsdom]
Add support for userAgent
option (#11773)[jest-environment-node]
Add Event
and EventTarget
to node global environment. (#11727)[jest-mock]
Fix spyOn
to use Object.prototype.hasOwnProperty
(#11721)[jest-resolver]
Add dependency on jest-haste-map
(#11759)[jest-types]
Compat with @types/node
v16 (#11645)[docs]
Correct expects.assertions
documentation by adding async/await for asynchronous function.