moltin-request
moltin-request copied to clipboard
chore(deps): update jest monorepo (major)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @types/jest | 24.9.1 -> 27.4.1 |
||||
| jest (source) | 24.9.0 -> 27.5.1 |
||||
| ts-jest (source) | 24.3.0 -> 27.1.4 |
Release Notes
facebook/jest
v27.5.1
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.0
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.7
Fixes
-
jest-configAdd missing@babel/coredependency (#โ12216)
v27.4.6
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.5
Fixes
-
[jest-worker]Stop explicitly passingprocess.env(#โ12141)
v27.4.4
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 back
v27.4.3
Fixes
-
[jest-environment-jsdom]Remove@types/jsdomdependency (and make itsdompropertyprivate) (#โ12107)
v27.4.2
Fixes
-
[jest-worker]Add additionalexecArgvto filter (#โ12103)
v27.4.1
Fixes
-
[jest-worker]FilterexecArgvcorrectly (#โ12097)
v27.4.0
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.1
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.0
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.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--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.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-timersto v8 (#โ11879)
Fixes
-
[jest-config]ParsetestEnvironmentOptionsif received from CLI (#โ11902) -
[jest-reporters]Calldestroyonv8-to-istanbulconverters to free memory (#โ11896)
v27.2.2
Fixes
-
[jest-runtime]CorrectwrapperLengthvalue for ESM modules. (#โ11893)
v27.2.1
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.0
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.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 thePrettyFormatOptionsinterface (#โ11801)
v27.1.0
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.6
Fixes
-
[*]Publish all modules to include the build change in (#โ11569)
v27.0.5
Features
-
[@jest/fake-timers]Flush callbacks scheduled withrequestAnimationFrameevery 16ms when using legacy timers. (#โ11523) -
[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.4
Fixes
-
[jest-config, jest-resolve]Pass inrequire.resolveto resolvers to resolve from correct base (#โ11493)
v27.0.3
Fixes
-
[jest-config]require.resolveon default test sequencer and test environment (#โ11482) -
[jest-mock]FixedfnandspyOnexports (#โ11480)
v27.0.2
Features
-
[jest-circus]Add some APIs to make it easier to build your own test runner -
[jest-reporters]Expose thegetResultHeaderutil (#โ11460) -
[jest-resolver]Exportresolve*utils for different Jest modules (#โ11466) -
[@jest/test-result]ExportTest,TestEventsandTestFileEvent(#โ11466)
Fixes
-
[jest-circus]Add missingslashdependency (#โ11465) -
[jest-circus, @​jest/test-sequencer]Remove dependency onjest-runner(#โ11466) -
[jest-config]Resolveconfig.runnerto absolute path (#โ11465) -
[jest-config]Make sure to support functions as config (#โ11475) -
[jest-core]Do not warn aboutDNSCHANNELhandles when using the--detectOpenHandlesoption (#โ11470) -
[jest-runner]Remove dependency onjest-config(#โ11466) -
[jest-worker]Loosen engine requirement to>= 10.13.0(#โ11451)
v27.0.1
Fixes
-
[jest-environment-jsdom]Bump version of JSDOM to avoid deprecatedrequestpackage (#โ11442)
v27.0.0
Features
-
[babel-jest]Add async transformation (#โ11192) -
[jest-changed-files]Use '--' to separate paths from revisions (#โ11160) -
[jest-circus][BREAKING] Fail tests when multipledone()calls are made (#โ10624) -
[jest-circus, jest-jasmine2][BREAKING] Fail the test instead of just warning when describe returns a value (#โ10947) -
[jest-config][BREAKING] Default to Node testing environment instead of browser (JSDOM) (#โ9874) -
[jest-config][BREAKING] Usejest-circusas default test runner (#โ10686) -
[jest-config]Add support forpresetwritten in ESM (#โ11200) -
[jest-config, jest-runtime]Support ESM for files other than.jsand.mjs(#โ10823) -
[jest-config, jest-runtime][BREAKING] Use "modern" implementation as default for fake timers (#โ10874 & #โ11197) -
[jest-configAllow passingforceNodeFilesystemAPIthrough tojest-haste-map(#โ11264) -
[jest-config, jest-haste-map, jest-resolve, jest-runner, jest-runtime, jest-test-sequencer, jest-transform, jest-types][BREAKING] Add custom HasteMap class implementation config option (#โ11107) -
[jest-core]makeTestWatcherextendemittery(#โ10324) -
[jest-core]Run failed tests interactively the same way we do with snapshots (#โ10858) -
[jest-core]moreTestSequencermethods can be async (#โ10980) -
[jest-core]Add support fortestSequencerwritten in ESM (#โ11207) -
[jest-core]Add support forglobalSetupandglobalTeardownwritten in ESM (#โ11267) -
[jest-core]Add support forwatchPluginswritten in ESM (#โ11315) -
[jest-core]Add support forrunnerwritten in ESM (#โ11232) -
[jest-core]Add support forreporterswritten in ESM (#โ11427) -
[jest-each]Add support for interpolation with object properties (#โ11388) -
[jest-environment-node]Add AbortController to globals (#โ11182) -
[@jest/fake-timers]Update to@sinonjs/fake-timersto v7 (#โ11198) -
[jest-haste-map]Handle injected scm clocks (#โ10966) -
[jest-haste-map]AddenableSymlinksconfiguration option to follow symlinks for test files (#โ9351) -
[jest-repl, jest-runner][BREAKING] Run transforms over environment (#โ8751) -
[jest-repl]Add support fortestEnvironmentwritten in ESM (#โ11232) -
[jest-reporters]Add static filepath property to all reporters (#โ11015) -
[jest-runner][BREAKING] set exit code to 1 if test logs after teardown (#โ10728) -
[jest-runner][BREAKING] Run transforms overrunner(#โ8823) -
[jest-runner][BREAKING] Run transforms overtestRunner(#โ8823) -
[jest-runner]Possibility to use ESM for test environment (11033) -
[jest-runner]Add support fortestRunnerwritten in ESM (#โ11232) -
[jest-runtime]Detect reexports from CJS as named exports in ESM (#โ10988) -
[jest-runtime]Support for async code transformations (#โ11191 & #โ11220) -
[jest-snapshot][BREAKING] Make prettier optional for inline snapshots - fall back to string replacement (#โ7792 & #โ11192) -
[jest-snapshot][BREAKING] Run transforms oversnapshotResolver(#โ8751) -
[jest-transform]Pass config options defined in Jest's config to transformer'sprocessandgetCacheKeyfunctions (#โ10926) -
[jest-transform]Add support for transformers written in ESM (#โ11163) -
[jest-transform][BREAKING] Do not exportScriptTransformerclass, instead export the async functioncreateScriptTransformer(#โ11163) -
[jest-transform]Async code transformations (#โ9889) -
[jest-transform]Support transpiled transformers (#โ11193) -
[jest-transform][BREAKING]requireAndTranspileModulealways return aPromise, and the third parameter type is changed toRequireAndTranspileModuleOptionswhich acceptapplyInteropRequireDefaultoption (#โ11232) -
[jest-transform][BREAKING]createTranspilingRequirereturn function which return aPromisenow (#โ11232) -
[jest-util]add requireOrImportModule for importing CJS or ESM (#โ11199) -
[jest-util]addapplyInteropRequireDefaultoption onrequireOrImportModule(#โ11232) -
[jest-watcher]Added support for clearing the line when<C-u>is pressed in a watch mode pattern prompt (#โ11358) -
[jest-worker]Add support for custom task queues and adds aPriorityQueueimplementation. (#โ10921) -
[jest-worker]Add in-order scheduling policy to jest worker (10902) -
[pretty-format]Better print for sparse arrays (11326) -
[pretty-print]Add optionprintBasicPrototypewhich determines whether or not the prototype should be printed for raw objects or arrays (#โ11441)
Fixes
-
[babel-plugin-jest-hoist]Add__dirnameand__filenameto whitelisted globals (#โ10903) -
[expect][BREAKING] Reviseexpect.not.objectContaining()to be the inverse ofexpect.objectContaining(), as documented. (#โ10708) -
[expect][BREAKING] MaketoContainmore strict with the received type (#โ10119 & #โ10929) -
[expect][BREAKING]matcherResultonJestAssertionErrorare now strings rather than functions (#โ10989) -
[jest-circus]Fixed the issue of beforeAll & afterAll hooks getting executed even if it is inside a skippeddescribeblock (#โ10806) -
[jest-circus]FixtestLocationon Windows when usingtest.each(#โ10871) -
[jest-cli]Use testFailureExitCode when bailing from a failed test (#โ10958) -
[jest-cli]Print custom error if error thrown from global hooks is not an error already (#โ11003) -
[jest-cli]Allow running multiple "projects" from programmatic API (#โ11307) -
[jest-cli]Fix missing collectCoverage after init (#โ11353) -
[jest-cli, jest-config, jest-types]Move all default values intojest-config(#โ9924) -
[jest-config][BREAKING] Change default file extension order by moving json behind ts and tsx (10572) -
[jest-console]console.dirnow respects the second argument correctly (#โ10638) -
[jest-core]Don't report PerformanceObserver as open handle (#โ11123) -
[jest-core]UseWeakRefto hold timers when detecting open handles (#โ11277) -
[jest-core]Correctly detect open handles that were created in test functions usingdonecallbacks (#โ11382) -
[jest-core]Do not collectRANDOMBYTESREQUESTas open handles (#โ11278) -
[jest-core]Wait briefly for open handles to close before flagging them when using--detectOpenHandles(#โ11429) -
[jest-diff][BREAKING] Use only named exports (#โ11371) -
[jest-each][BREAKING] Ignore excess words in headings (#โ8766) -
[jest-each]Support array index with template strings (#โ10763) -
[jest-each]Interpolate%%correctly (#โ11364) -
[jest-each]Fix wrong interpolation when the value of array contains multiple%(#โ11364) -
[jest-environment][BREAKING] Drop support forrunScriptfor test environments (#โ11155) -
[jest-environment-jsdom]Use inner realmโsArrayBufferconstructor (#โ10885) -
[jest-environment-jsdom][BREAKING] Remove Node globalssetImmediateandclearImmediate(#โ11222) -
[jest-get-type][BREAKING] Convert to ES Module (#โ11359) -
[jest-globals][BREAKING] Disallow return values other than aPromisefrom hooks and tests (#โ10512) -
[jest-globals][BREAKING] Disallow mixing a done callback and returning aPromisefrom hooks and tests (#โ10512) -
[jest-haste-map]VendorNodeWatcherfromsane(#โ10919) -
[jest-jasmine2]Fixed the issue ofbeforeAll&afterAllhooks getting executed even if it is inside a skippeddescribeblock when it has childtestsmarked as eitheronlyortodo(#โ10806) -
[jest-jasmine2]Fixed the issues of childtestsmarked withonlyortodogetting executed even if it is inside a skipped parentdescribeblock (#โ10806) -
[jest-jasmine2]Wrap all test functions so they open handles that were created in test functions usingdonecallbacks can be detected (#โ11382) -
[jest-reporter]Handle empty files when reporting code coverage with V8 (#โ10819) -
[jest-resolve]Replace read-pkg-up with escalade package (#โ10781) -
[jest-resolve]Disablejest-pnp-resolverfor Yarn 2 (#โ10847) -
[jest-runtime][BREAKING] Do not injectglobalvariable into module wrapper (#โ10644) -
[jest-runtime][BREAKING] remove long-deprecatedjest.addMatchers,jest.resetModuleRegistry, andjest.runTimersToTime(#โ9853) -
[jest-runtime]Fix stack overflow and promise deadlock when importing mutual dependant ES module (#โ10892) -
[jest-runtime]Prevent global module registry from leaking intoisolateModulesregistry (#โ10963) -
[jest-runtime]Refactor to prevent race condition when linking and evaluating ES Modules (#โ11150) -
[jest-runtime]Throw correct error when attempting to load ESM viarequire(#โ11260) -
[jest-runtime]Do not cache modules that throw during evaluation (#โ11263) -
[jest-transform]Show enhancedSyntaxErrormessage for allSyntaxErrors (#โ10749) -
[jest-transform][BREAKING] Refactor API to pass an options bag around rather than multiple boolean options (#โ10753) -
[jest-transform][BREAKING] Refactor API of transformers to pass an options bag rather than separateconfigand other options (#โ10834) -
[jest-types]FixConfig.tsprojectstypes (#โ11285) -
[jest-util]Replace micromatch with picomatch to fix issues with negated globs (#โ11287) -
[jest-validate]Useen-USlocale to avoid case conversion problems while validating CLI options on machines with some certain locales(e.g. Turkish) set as default locale. (#โ11412) -
[jest-worker][BREAKING] Use named exports (#โ10623) -
[jest-worker]Do not swallow errors during serialization (#โ10984) -
[jest-worker]HandleERR_IPC_CHANNEL_CLOSEDerrors properly (#โ11143) -
[pretty-format][BREAKING] Convert to ES Modules (#โ10515) -
[pretty-format]Only callhasAttributeif it's a function (#โ11000) -
[pretty-format]Handle jsdom attributes properly (#โ11189) -
[pretty-format]Import pretty-format using named imports (#โ11360)
Chore & Maintenance
-
[*][BREAKING] Only support Node LTS releases and Node 15 (#โ10685) -
[*][BREAKING] Addexportsfield to allpackage.jsons (#โ9921) -
[*]Make it easier for Jest's packages to use the VM escape hatch (#โ10824) -
[*][BREAKING] Remove deprecatedmapCoverage(#โ9968) -
[babel-jest][BREAKING] Migrate to ESM (#โ11193) -
[docs]Correct example usingbrowser-resolve(#โ11140) -
[docs]Clarifytimersconfiguration property (#โ11376) -
[jest, jest-core][BREAKING] ReplaceTestSchedulerexport withcreateTestScheduler(#โ11427) -
[jest-config][BREAKING] RemoveenabledTestsMapconfig, usefilterinstead (#โ10787) -
[jest-console][BREAKING] Moverootintoconfigand takeGlobalConfigas mandatory parameter forgetConsoleOutput(#โ10126) -
[jest-console]Export LogEntry (#โ11017) -
[jest-fake-timers]Clarify global behavior ofjest.useFakeTimersandjest.useRealTimers(#โ10867) -
[jest-haste-map][BREAKING] Migrate to ESM (#โ10875) -
[jest-haste-map][BREAKING] Remove support for deprecated optionignorePatternas function (#โ10348) -
[jest-jasmine2][BREAKING] Migrate to ESM (#โ10906) -
[jest-jasmine2][BREAKING] Remove unused options argument fromEnvconstructor (#โ10240) -
[jest-repl, jest-runtime][BREAKING] Move thejest-runtimeCLI intojest-repl(#โ10016 & #โ10925) -
[jest-resolve][BREAKING] Migrate to ESM (#โ10688) -
[jest-resolve-dependencies][BREAKING] Migrate to ESM (#โ10876) -
[jest-mock][BREAKING] Migrate to ESM (#โ10887) -
[jest-reporters][BREAKING] Makenode-notifiera peer dependency (#โ10977) -
[jest-resolve, jest-runtime][BREAKING] UseMaps instead of objects for all cached resources (#โ10968) -
[jest-runner][BREAKING] Migrate to ESM (#โ10900) -
[jest-runtime][BREAKING] Remove deprecated and unusedgetSourceMapInfofrom Runtime (#โ9969) -
[jest-transformer][BREAKING] Remove unusedisCoreModuleoption (#โ11166) -
[jest-util]No longer checkingenumerablewhen addingprocess.domain(#โ10862) -
[jest-validate][BREAKING] RemoverecursiveBlacklistoption in favor of previously introducedrecursiveDenylist(#โ10650) -
[website]Replace 'Github' with 'GitHub' (#โ11279) -
[website]Remove a language code from the link to the Node.js website (#โ11282) -
[website]Remove a duplicated word (#โ11281) -
[website]Add french to website (#โ11361)
Performance
-
[jest-resolve]Cache reading and parsing ofpackage.jsons (#โ11076) -
[jest-runtime, jest-transform]sharecacheFSbetween runtime and transformer (#โ10901) -
[jest-runtime]Loadchalkonly once per worker (#โ10864) -
[jest-worker]Fix memory leak of previous task arguments while no new task is scheduled (#โ11187)
v26.6.3
Fixes
-
[jest-resolve-dependencies]Continue dependency resolution if mock dependency can't be found (#โ10779)
v26.6.2
Features
-
[jest-core]AddfindRelatedTestsandnonFlagArgsin allowed config options forupdateConfigAndRunin watch plugins (#โ10659)
Fixes
-
[babel-plugin-jest-hoist]Preserve order of hoisted mock nodes within containing block (#โ10536) -
[babel-plugin-jest-hoist]Hoist pure constants to support experimental JSX transform in hoisted mocks (#โ10723) -
[babel-preset-jest]Updatebabel-preset-current-node-syntaxto support top level await (#โ10747) -
[expect]Revert "FixobjectContainingto work recursively into sub-objects (#โ10508)" (#โ10766) -
[jest-circus, jest-jasmine2]fix: don't assumestackis always a string (#โ10697) -
[jest-config]Fix bug introduced in watch mode by PR #โ10678 (#โ10692) -
[jest-config]Throw correct error for missing preset modules (#โ10737) -
[jest-resolve-dependencies]Resolve mocks as dependencies (#โ10713) -
[jest-runtime]Handle file URLs in dynamic imports (#โ10744) -
[jest-runtime, babel-jest]Pass more ESM options to@jest/transform(#โ10752) -
[jest-runtime]Properly injectextraGlobalsinto the runtime (#โ10758) -
[jest-transform]Link to ESM docs on syntax errors (#โ10748)
Chore & Maintenance
-
[docs]Add docs for using mocks in TypeScript (#โ10415) -
[eslint-config-fb-strict]Move package from this repo tofbjsrepo (#โ10739) -
[examples]Update TypeScript example to show use of newer Jest types (#โ10399) -
[jest-cli]chore: standardize files and folder names (#โ10698) -
[jest-config]Switch ts-nodeRegistertype toServicedue to deprecation (#โ11210)
v26.6.1
Features
-
[jest-runtime]Support named exports from CommonJS as named ES Module imports (#โ10673) -
[jest-validate]Add support forrecursiveDenylistoption as an alternative torecursiveBlacklist(#โ10236)
Fixes
-
[expect]FixobjectContainingto work recursively into sub-objects (#โ10508) -
[jest-cli, jest-core, jest-config, jest-types]Fix--onlyFailuresflag to work in non-watch mode (#โ10678) -
[jest-config]Fix for thejest.config.tscompiler to not interfere withtsconfig.jsonfiles (#โ10675) -
[jest-message-util]Update to work properly with Node 15 (#โ10660) -
[jest-mock]Allow to mock methods in getters (TypeScript 3.9 export) (#โ10156)
v26.6.0
Features
-
[jest-cli, jest-config]Add support for thejest.config.tsconfiguration file (#โ10564)
Fixes
-
[jest-config]Simplify transform RegExp (#โ10207) -
[jest-fake-timers]Lazily instantiate mock timers (#โ10551) -
[jest-runtime]require.mainis no longerundefinedwhen usingjest.resetModules(#โ10626) -
[@jest/types]Add missing values fortimers(#โ10632)
Chore & Maintenance
-
[docs]Add step for fetchingbackers.jsonfile in website setup docs (#โ10631) -
[docs]Add page detailing environment variables set by Jest (#โ10630) -
[jest-circus]RefactorcallAsyncCircusFnparameters (#โ10629)
v26.5.3
Features
-
[jest-runtime]add support for dynamicimport()from CommonJS (#โ10620)
Fixes
-
[jest-runner, jest-runtime]require.mainshould not beundefinedwithcreateRequire()(#โ10610) -
[jest-runtime]add missingmodule.pathproperty (#โ10615) -
[jest-runtime]AddmainModuleinstance variable to runtime (#โ10621) -
[jest-runtime]Evaluate Node core modules on dynamicimport()(#โ10622) -
[jest-validate]Show suggestion only when unrecognized cli param is longer than 1 character (#โ10604) -
[jest-validate]ValidatetestURLas CLI option (#โ10595)
v26.5.2
Fixes
-
[*]Revert usage of Escalade and rollback Yargs to v15 as it breaks Node 13 (#โ10599) -
[jest-circus]Setup globals before emittingsetup, and include Jest globals in thesetuppayload (#โ10598) -
[jest-mock]Fix typings formockResolvedValue,mockResolvedValueOnce,mockRejectedValueandmockRejectedValueOnce(#โ10600)
v26.5.0
Features
-
[jest-circus, jest-config, jest-runtime]Add newinjectGlobalsconfig and CLI option to disable injecting global variables into the runtime (#โ10484) -
[jest-each]Fixes.eachtype to always be callable (#โ10447) -
[jest-runner]Add support formoduleLoaders withdefaultexports (#โ10541) -
[@jest/create-cache-key-function]Added a new package for creating cache keys (#โ10587)
Fixes
-
[jest-circus, jest-jasmine2]Find correct location fortest.eachtests (#โ10413) -
[jest-console]AddConsoleconstructor toconsoleobject (#โ10502) -
[jest-globals]Fix lifecycle hook function types (#โ10480) -
[jest-runtime]Remove usage ofvm.compileFunctiondue to a performance issue (#โ10586)
Chore & Maintenance
-
[jest-resolve]Replace read-pkg-up with escalade package (10558) -
[jest-environment-jsdom]Update jsdom to 16.4.0 (10578)
v26.4.2
Fixes
-
[expect]FixtoMatchObjectto work with inherited class getters (#โ10381) -
[pretty-format]Lower minimum node version to >= 10 (#โ10435)
v26.4.1
Fixes
-
[jest-core]Don't report ELDHistogram as open handle (#โ10417) -
[jest-matcher-utils]Fix diffing object contain readonly symbol key object (#โ10414) -
[jest-reporters]Fixes notify reporter on Linux (using notify-send) (#โ10393) -
[jest-snapshot]Correctly handles arrays and property matchers in snapshots (#โ10404)
v26.4.0
Features
-
[jest-resolve]Add support forpackageFilteron custom resolver (#โ10393)
Fixes
-
[pretty-format]HandletagNamenot being a string (#โ10397)
v26.3.0
Features
-
[jest-circus, jest-jasmine2]IncludefailureDetailsproperty in test results (#โ9496) -
[jest-each, jest-jasmine, jest-circus]Add support for.concurrent.each(#โ9326)
Fixes
-
[jest-config]Add.pnp.jstotransformIgnorePatternsdefaults (#โ10383) -
[jest-leak-detector]Wait properly for GC runs due to changes in Node 14.7 (#โ10366) -
[jest-worker]Downgrade minimum node version to 10.13 (#โ10352) -
[docs]Update snapshot testing documentation(#โ10359)
v26.2.2
Fixes
-
[jest-cli]Use correct file name to override existing jest config on init (#โ10337) -
[jest-haste-map]Properly detect support for nativefind(#โ10346)
v26.2.1
Fixes
-
[jest-worker]Make sure to work with Node TS typings v12 (#โ10336)
v26.2.0
Features
-
[jest-core, jest-circus, jest-reporter, jest-runner]Added support for reporting individual test cases using jest-circus (#โ10227) -
[jest-config, jest-reporter, jest-runner, jest-test-sequencer]AddslowTestThresholdconfiguration option (#โ9366) -
[jest-haste-map]Watchman crawler now includes dotfiles (#โ10075) -
[jest-worker]Added support for workers to send custom messages to parent in jest-worker (#โ10293) -
[jest-worker]Support passingresourceLimits(#โ10335) -
[pretty-format]Added support for serializing custom elements (web components) (#โ10217)
Fixes
Configuration
๐ Schedule: "before 3am on Monday" (UTC).
๐ฆ 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.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by WhiteSource Renovate. View repository job log here.