Update jest monorepo #3
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
26.0.23->26.0.2427.0.2->27.5.1Release Notes
facebook/jest
v27.5.1Compare Source
Features
[jest-config]Support comments in JSON config file (#12316)[pretty-format]ExposeConvertAnsiplugin (#12308)Fixes
[expect]Add type definitions for asymmetriccloseTomatcher (#12304)[jest-cli]Load binary via exported API (#12315)[jest-config]Replacejsonlintwithparse-json(#12316)[jest-repl]Make module importable (#12311 & #12315)Chore & Maintenance
[*]Avoid anonymous default exports (#12313)v27.5.0Compare Source
Features
[expect]Add asymmetric matcherexpect.closeTo(#12243)[jest-mock]AddedmockFn.mock.lastCallto retrieve last argument (#12285)Fixes
[expect]Add a fix for.toHaveProperty('')(#12251)[jest-each, @​jest/globals]Allow passingReadonlyArraytype of a table todescribe.eachandtest.each(#12297)[@jest/globals]Add missingoptionsargument tojest.doMocktyping (#12292)[jest-environment-node]Addatobandbtoa(#12269)[jest-matcher-utils]Correct diff for expected asymmetric matchers (#12264)[jest-message-util]Fix.getTopFrame()(andtoMatchInlineSnapshot()) withmjsfiles (#12277)Chore & Maintenance
[*]Updategraceful-fsto^4.2.9(#11749)Performance
[jest-resolve]perf: skip error creation on not foundstatcalls (#11749)v27.4.7Compare Source
Fixes
jest-configAdd missing@babel/coredependency (#12216)v27.4.6Compare Source
Fixes
[jest-environment-node]AddAbortSignal(#12157)[jest-environment-node]Add Missing node globalperformance(#12002)[jest-runtime]Handle missingmockedproperty (#12213)[@jest/transform]Update dependency packagepiratesto 4.0.4 (#12002)Performance
jest-configperf: only register ts-node once when loading TS config files (#12160)v27.4.5Compare Source
Fixes
[jest-worker]Stop explicitly passingprocess.env(#12141)v27.4.4Compare Source
Fixes
[babel-jest]Addprocess.versionchunk to the cache key (#12122)[jest-environment]Addmockedtojestobject (#12133)[jest-worker]Stop explicitly passingexecArgv(#12128)Chore & Maintenance
[website]Fix the card front that looks overlapping part of the card backv27.4.3Compare Source
Fixes
[jest-environment-jsdom]Remove@types/jsdomdependency (and make itsdompropertyprivate) (#12107)v27.4.2Compare Source
Fixes
[jest-worker]Add additionalexecArgvto filter (#12103)v27.4.1Compare Source
Fixes
[jest-worker]FilterexecArgvcorrectly (#12097)v27.4.0Compare Source
Features
[expect]Enhancing thetoHavePropertymatcher to support array selection (#12092)[jest-core]Add support fortestResultsProcessorwritten in ESM (#12006)[jest-diff, pretty-format]AddcompareKeysoption for custom sorting of object keys (#11992)[jest-mock]Addts-jestmock util functions (#12089)Fixes
[expect]Allow againexpect.Matchersgeneric with single value (#11986)[jest-circus, jest-jasmine2]Avoid false concurrent test failures due to unhandled promise rejections (#11987)[jest-config]Add missingslashdependency topackage.json(#12080)[jest-core]Incorrect detection of open ZLIB handles (#12022)[jest-diff]Break dependency cycle (#10818)[jest-environment-jsdom]Add@types/jsdomdependency (#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]PassexecArgvcorrectly toworker_threadsworker (#12069)Chore & Maintenance
[docs]CLI options alphabetized (#11586)[jest-runner]Add info regarding timers to forcedExit message(#12083)[*]Replacedsubstrmethod withsubstring(#12066)[*]Addtypesentry to all export maps (#12073)v27.3.1Compare Source
Fixes
[expect]Makeexpectextension propertiesconfigurable(#11978)[expect]Fix.any()checks on primitive wrapper classes (#11976)Chore & Maintenance
[expect]BigIntglobal is always defined, don't check for its existence at runtime (#11979)[jest-config, jest-util]Useci-infoinstead ofis-cito detect CI environment (#11973)v27.3.0Compare Source
Features
[jest-config]AddtestEnvironmentOptions.htmlto apply to jsdom input (#11950)[jest-resolver]Support default export (.) inexportsfield ifmainis missing (#11919)Fixes
[expect]Tweak and improve types (#11949)[jest-runtime]Ensure absolute paths can be resolved within test modules (#11943)[jest-runtime]FixinstanceofforModernFakeTimersandLegacyFakeTimersmethods (#11946)v27.2.5Compare Source
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--helpprintout by removing defunct--browseroption (#11914)[jest-haste-map]Use distinct cache paths for different values ofcomputeDependencies(#11916)[@jest/reporters]Do not bufferconsole.logs when using verbose reporter (#11054)Chore & Maintenance
[expect]Export default matchers (#11932)[@jest/types]Mark deprecated configuration options as@deprecated(#11913)v27.2.4Compare Source
Features
[expect]Add equality checks for Array Buffers inexpect.ToStrictEqual()(#11805)Fixes
[jest-snapshot]Correctly indent inline snapshots (#11560)v27.2.3Compare Source
Features
[@jest/fake-timers]Update@sinonjs/fake-timersto v8 (#11879)Fixes
[jest-config]ParsetestEnvironmentOptionsif received from CLI (#11902)[jest-reporters]Calldestroyonv8-to-istanbulconverters to free memory (#11896)v27.2.2Compare Source
Fixes
[jest-runtime]CorrectwrapperLengthvalue for ESM modules. (#11893)v27.2.1Compare Source
Features
[jest-transform]Improve the unexpected token error message. (#11807)Fixes
[jest-runtime]Fix regression when usingjest.isolateModulesand 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.0Compare Source
Features
[jest-resolver, jest-runtime]Passconditionsto custom resolvers to enable them to implement support for package.jsonexportsfield (#11859)[jest-runtime]Allow custom envs to specifyexportConditionswhich 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.sendstub (#11799)v27.1.1Compare Source
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 thePrettyFormatOptionsinterface (#11801)v27.1.0Compare Source
Features
[jest-haste-map]Use watchman suffix-set option for faster file indexing. (#11784)[jest-cli]Adds a new config optionssnapshotFormatwhich offers a way to override any of the formatting settings which come with pretty-format. (#11654)[jest-reporters]Expose thegetSummaryutil (#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 foruserAgentoption (#11773)[jest-environment-node]AddEventandEventTargetto node global environment. (#11727)[jest-mock]FixspyOnto useObject.prototype.hasOwnProperty(#11721)[jest-resolver]Add dependency onjest-haste-map(#11759)[jest-types]Compat with@types/nodev16 (#11645)Chore & Maintenance
[docs]Correctexpects.assertionsdocumentation by adding async/await for asynchronous function.v27.0.6Compare Source
Fixes
[*]Publish all modules to include the build change in (#11569)v27.0.5Compare Source
Features
[@jest/fake-timers]Flush callbacks scheduled withrequestAnimationFrameevery 16ms when using legacy timers. (#11567)[pretty-format]UseglobalThis(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(#11548)[@jest/fake-timers]Do not addsetImmediateandclearImmediateif they do not exist in the global environment (#11599)[@jest/reporters]Allownode-notifier@10as peer dependency (#11523)[@jest/reporters]Updatev8-to-istanbul(#11523)v27.0.4Compare Source
Fixes
[jest-config, jest-resolve]Pass inrequire.resolveto resolvers to resolve from correct base (#11493)v27.0.3Compare Source
Fixes
[jest-config]require.resolveon default test sequencer and test environment (#11482)[jest-mock]FixedfnandspyOnexports (#11480)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.