chore(deps): update dependency jest to v27.5.1
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
jest (source) | devDependencies | minor | 27.0.6 -> 27.5.1 |
Release Notes
facebook/jest
v27.5.1
Features
-
[jest-config]
Support comments in JSON config file (#12316) -
[pretty-format]
ExposeConvertAnsi
plugin (#12308)
Fixes
-
[expect]
Add type definitions for asymmetriccloseTo
matcher (#12304) -
[jest-cli]
Load binary via exported API (#12315) -
[jest-config]
Replacejsonlint
withparse-json
(#12316) -
[jest-repl]
Make module importable (#12311 & #12315)
Chore & Maintenance
-
[*]
Avoid anonymous default exports (#12313)
v27.5.0
Features
-
[expect]
Add asymmetric matcherexpect.closeTo
(#12243) -
[jest-mock]
AddedmockFn.mock.lastCall
to retrieve last argument (#12285)
Fixes
-
[expect]
Add a fix for.toHaveProperty('')
(#12251) -
[jest-each, @​jest/globals]
Allow passingReadonlyArray
type of a table todescribe.each
andtest.each
(#12297) -
[@jest/globals]
Add missingoptions
argument tojest.doMock
typing (#12292) -
[jest-environment-node]
Addatob
andbtoa
(#12269) -
[jest-matcher-utils]
Correct diff for expected asymmetric matchers (#12264) -
[jest-message-util]
Fix.getTopFrame()
(andtoMatchInlineSnapshot()
) withmjs
files (#12277)
Chore & Maintenance
-
[*]
Updategraceful-fs
to^4.2.9
(#11749)
Performance
-
[jest-resolve]
perf: skip error creation on not foundstat
calls (#11749)
v27.4.7
Fixes
-
jest-config
Add missing@babel/core
dependency (#12216)
v27.4.6
Fixes
-
[jest-environment-node]
AddAbortSignal
(#12157) -
[jest-environment-node]
Add Missing node globalperformance
(#12002) -
[jest-runtime]
Handle missingmocked
property (#12213) -
[@jest/transform]
Update dependency packagepirates
to 4.0.4 (#12002)
Performance
-
jest-config
perf: only register ts-node once when loading TS config files (#12160)
v27.4.5
Fixes
-
[jest-worker]
Stop explicitly passingprocess.env
(#12141)
v27.4.4
Fixes
-
[babel-jest]
Addprocess.version
chunk to the cache key (#12122) -
[jest-environment]
Addmocked
tojest
object (#12133) -
[jest-worker]
Stop explicitly passingexecArgv
(#12128)
Chore & Maintenance
-
[website]
Fix the card front that looks overlapping part of the card back
v27.4.3
Fixes
-
[jest-environment-jsdom]
Remove@types/jsdom
dependency (and make itsdom
propertyprivate
) (#12107)
v27.4.2
Fixes
-
[jest-worker]
Add additionalexecArgv
to filter (#12103)
v27.4.1
Fixes
-
[jest-worker]
FilterexecArgv
correctly (#12097)
v27.4.0
Features
-
[expect]
Enhancing thetoHaveProperty
matcher to support array selection (#12092) -
[jest-core]
Add support fortestResultsProcessor
written in ESM (#12006) -
[jest-diff, pretty-format]
AddcompareKeys
option for custom sorting of object keys (#11992) -
[jest-mock]
Addts-jest
mock util functions (#12089)
Fixes
-
[expect]
Allow againexpect.Matchers
generic with single value (#11986) -
[jest-circus, jest-jasmine2]
Avoid false concurrent test failures due to unhandled promise rejections (#11987) -
[jest-config]
Add missingslash
dependency topackage.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]
PassexecArgv
correctly toworker_threads
worker (#12069)
Chore & Maintenance
-
[docs]
CLI options alphabetized (#11586) -
[jest-runner]
Add info regarding timers to forcedExit message(#12083) -
[*]
Replacedsubstr
method withsubstring
(#12066) -
[*]
Addtypes
entry to all export maps (#12073)
v27.3.1
Fixes
-
[expect]
Makeexpect
extension propertiesconfigurable
(#11978) -
[expect]
Fix.any()
checks on primitive wrapper classes (#11976)
Chore & Maintenance
-
[expect]
BigInt
global is always defined, don't check for its existence at runtime (#11979) -
[jest-config, jest-util]
Useci-info
instead ofis-ci
to detect CI environment (#11973)
v27.3.0
Features
-
[jest-config]
AddtestEnvironmentOptions.html
to apply to jsdom input (#11950) -
[jest-resolver]
Support default export (.
) inexports
field ifmain
is missing (#11919)
Fixes
-
[expect]
Tweak and improve types (#11949) -
[jest-runtime]
Ensure absolute paths can be resolved within test modules (#11943) -
[jest-runtime]
Fixinstanceof
forModernFakeTimers
andLegacyFakeTimers
methods (#11946)
v27.2.5
Features
-
[jest-config]
Warn when multiple Jest configs are located (#11922)
Fixes
-
[expect]
Pass matcher context to asymmetric matchers (#11926 & #11930) -
[expect]
Improve TypeScript types (#11931) -
[expect]
Improve typings oftoThrow()
andtoThrowError()
matchers (#11929) -
[jest-cli]
Improve--help
printout by removing defunct--browser
option (#11914) -
[jest-haste-map]
Use distinct cache paths for different values ofcomputeDependencies
(#11916) -
[@jest/reporters]
Do not bufferconsole.log
s when using verbose reporter (#11054)
Chore & Maintenance
-
[expect]
Export default matchers (#11932) -
[@jest/types]
Mark deprecated configuration options as@deprecated
(#11913)
v27.2.4
Features
-
[expect]
Add equality checks for Array Buffers inexpect.ToStrictEqual()
(#11805)
Fixes
-
[jest-snapshot]
Correctly indent inline snapshots (#11560)
v27.2.3
Features
-
[@jest/fake-timers]
Update@sinonjs/fake-timers
to v8 (#11879)
Fixes
-
[jest-config]
ParsetestEnvironmentOptions
if received from CLI (#11902) -
[jest-reporters]
Calldestroy
onv8-to-istanbul
converters to free memory (#11896)
v27.2.2
Fixes
-
[jest-runtime]
CorrectwrapperLength
value for ESM modules. (#11893)
v27.2.1
Features
-
[jest-transform]
Improve the unexpected token error message. (#11807)
Fixes
-
[jest-runtime]
Fix regression when usingjest.isolateModules
and mocks (#11882) -
[jest-runtime]
Include test name when importing modules after test has completed (#11885) -
[jest-runtime]
Error when ESM import is used after test is torn down (#11885)
v27.2.0
Features
-
[jest-resolver, jest-runtime]
Passconditions
to custom resolvers to enable them to implement support for package.jsonexports
field (#11859) -
[jest-runtime]
Allow custom envs to specifyexportConditions
which is passed together with Jest's own conditions to custom resolvers (#11863)
Fixes
-
[@jest/reporters]
Use async transform if available to transform files with no coverage (#11852) -
[jest-util]
Return correct value fromprocess.send
stub (#11799)
v27.1.1
Features
-
[jest-runtime]
Add experimental, limited (and undocumented) support for mocking ECMAScript Modules (#11818)
Fixes
-
[jest-resolver]
Supportnode:
prefix when importing Node core modules with ESM (#11817) -
[jest-types]
Export thePrettyFormatOptions
interface (#11801)
v27.1.0
Features
-
[jest-haste-map]
Use watchman suffix-set option for faster file indexing. (#11784) -
[jest-cli]
Adds a new config optionssnapshotFormat
which offers a way to override any of the formatting settings which come with pretty-format. (#11654) -
[jest-reporters]
Expose thegetSummary
util (#11695). -
[jest-resolver]
Supportnode:
prefix when importing Node core modules (#11331)
Fixes
-
[jest-each]
Relaxed the validation to allow multibyte characters in headings (#11575) -
[jest-environment-jsdom]
Add support foruserAgent
option (#11773) -
[jest-environment-node]
AddEvent
andEventTarget
to node global environment. (#11727) -
[jest-mock]
FixspyOn
to useObject.prototype.hasOwnProperty
(#11721) -
[jest-resolver]
Add dependency onjest-haste-map
(#11759) -
[jest-types]
Compat with@types/node
v16 (#11645)
Chore & Maintenance
-
[docs]
Correctexpects.assertions
documentation by adding async/await for asynchronous function.
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot. The local configuration can be found in the SI Renovate Bot repository.