consola
consola copied to clipboard
chore(deps): update jest monorepo to v28 (major)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
babel-jest | ^26.6.3 -> ^28.1.1 |
||||
jest (source) | ^26.6.3 -> ^28.1.1 |
Release Notes
facebook/jest
v28.1.1
Features
-
[jest]
ExposeConfig
type (#β12848) -
[@jest/reporters]
ImproveGitHubActionsReporter
s annotation format (#β12826) -
[@jest/types]
Infer argument types passed totest
anddescribe
callback functions fromeach
tables (#β12885, #β12905)
Fixes
-
[@jest/expect-utils]
Fix deep equality of ImmutableJS OrderedMaps (#β12763) -
[jest-docblock]
Handle multiline comments in parseWithComments (#β12845) -
[jest-mock]
ImprovespyOn
error messages (#β12901) -
[jest-runtime]
Correctly report V8 coverage withresetModules: true
(#β12912) -
[jest-worker]
MakeJestWorkerFarm
helper type to include methods of worker module that take more than one argument (#β12839)
Chore & Maintenance
-
[docs]
Updated docs to indicate thatjest-environment-jsdom
is a separate package #β12828 -
[docs]
Document the comments used by coverage providers #β12835 -
[docs]
Usedocusaurus-remark-plugin-tab-blocks
to format tabs with code examples (#β12859) -
[jest-haste-map]
Bumpwalker
version (#β12324)
v28.1.0
Features
-
[jest-circus]
Addfailing
test modifier that inverts the behavior of tests (#β12610) -
[jest-environment-node, jest-environment-jsdom]
Allow specifyingcustomExportConditions
(#β12774)
Fixes
-
[expect]
Adjust typings oflastCalledWith
,nthCalledWith
,toBeCalledWith
matchers to allow a case there a mock was called with no arguments (#β12807) -
[@jest/expect-utils]
Fix deep equality of ImmutableJS Lists (#β12763) -
[jest-core]
Do not collectSIGNREQUEST
as open handles (#β12789)
Chore & Maintenance
-
[docs]
Specified documentation about--filter
CLI docs (#β12799) -
[@jest-reporters]
Move helper functions fromutils.ts
into separate files (#β12782) -
[jest-resolve]
Replaceprocess.versions.pnp
type declaration with@types/pnpapi
devDependency (#β12783)
v28.0.3
Fixes
-
[jest-config]
Normalizereporters
option defined in presets (#β12769) -
[@jest/reporters]
Fix trailing slash in matchingcoverageThreshold
key (#β12714) -
[jest-resolve]
Fix (experimental) ESM module mocking for re-exports (#β12766) -
[@jest/transform]
Throw better error if an invalid return value if encountered (#β12764)
Chore & Maintenance
-
[docs]
Fix typo in--shard
CLI docs (#β12761)
v28.0.2
Features
-
[jest-worker]
AddJestWorkerFarm
helper type (#β12753)
Fixes
-
[*]
Lower Node 16 requirement to 16.10 from 16.13 due to a Node bug that causes memory and performance issues (#β12754)
v28.0.1
Features
-
[jest-resolve]
ExposeResolverOptions
type (#β12736)
Fixes
-
[expect]
Add missing dependencyjest-util
(#β12744) -
[jest-circus]
Improvetest.concurrent
(#β12748) -
[jest-resolve]
Correctly throw an error ifjsdom
test environment is used, but not installed (#β12749)
Chore & Maintenance
-
[jest-serializer]
Remove deprecated module from source tree (#β12735)
v28.0.0
Features
-
[babel-jest]
ExportcreateTransformer
function (#β12399) -
[expect]
ExposeAsymmetricMatchers
,MatcherFunction
andMatcherFunctionWithState
interfaces (#β12363, #β12376) -
[jest-circus]
Support error logging before retry (#β12201) -
[jest-circus, jest-jasmine2]
Allowed classes and functions asdescribe
andit
/test
names (#β12484) -
[jest-cli, jest-config]
[BREAKING] RemovetestURL
config, usetestEnvironmentOptions.url
instead (#β10797) -
[jest-cli, jest-core]
Add--shard
parameter for distributed parallel test execution (#β12546) -
[jest-cli]
[BREAKING] Remove undocumented--timers
option (#β12572) -
[jest-config]
[BREAKING] Stop shippingjest-environment-jsdom
by default (#β12354) -
[jest-config]
[BREAKING] Stop shippingjest-jasmine2
by default (#β12355) -
[jest-config, @​jest/types]
Addci
toGlobalConfig
(#β12378) -
[jest-config]
[BREAKING] RenamemoduleLoader
toruntime
(#β10817) -
[jest-config]
[BREAKING] RenameextraGlobals
tosandboxInjectedGlobals
(#β10817) -
[jest-config]
[BREAKING] Throw an error instead of showing a warning if multiple configs are used (#β12510) -
[jest-config]
[BREAKING] Do not normalize long deprecated configuration optionspreprocessorIgnorePatterns
,scriptPreprocessor
,setupTestFrameworkScriptFile
andtestPathDirs
(#β12701) -
[jest-cli, jest-core]
Add--ignoreProjects
CLI argument to ignore test suites by project name (#β12620) -
[jest-core]
Pass project config toglobalSetup
/globalTeardown
function as second argument (#β12440) -
[jest-core]
Stabilize test runners with event emitters (#β12641) -
[jest-core, jest-watcher]
[BREAKING] MoveTestWatcher
class tojest-watcher
package (#β12652) -
[jest-core]
Allow using Summary Reporter as stand-alone reporter (#β12687) -
[jest-environment-jsdom]
[BREAKING] Upgrade jsdom to 19.0.0 (#β12290) -
[jest-environment-jsdom]
[BREAKING] Add defaultbrowser
condition toexportConditions
forjsdom
environment (#β11924) -
[jest-environment-jsdom]
[BREAKING] Pass global config to Jest environment constructor forjsdom
environment (#β12461) -
[jest-environment-jsdom]
[BREAKING] Second argumentcontext
to constructor is mandatory (#β12469) -
[jest-environment-node]
[BREAKING] Add defaultnode
andnode-addon
conditions toexportConditions
fornode
environment (#β11924) -
[jest-environment-node]
[BREAKING] Pass global config to Jest environment constructor fornode
environment (#β12461) -
[jest-environment-node]
[BREAKING] Second argumentcontext
to constructor is mandatory (#β12469) -
[jest-environment-node]
Add all available globals to test globals, not just explicit ones (#β12642, #β12696) -
[@jest/expect]
New module which extendsexpect
withjest-snapshot
matchers (#β12404, #β12410, #β12418) -
[@jest/expect-utils]
New module exporting utils forexpect
(#β12323) -
[@jest/fake-timers]
[BREAKING] Renametimers
configuration option tofakeTimers
(#β12572) -
[@jest/fake-timers]
[BREAKING] Allowjest.useFakeTimers()
andprojectConfig.fakeTimers
to take an options bag (#β12572) -
[jest-haste-map]
[BREAKING]HasteMap.create
now returns a promise (#β12008) -
[jest-haste-map]
Add support fordependencyExtractor
written in ESM (#β12008) -
[jest-mock]
[BREAKING] Rename exported utility typesClassLike
,FunctionLike
,ConstructorLikeKeys
,MethodLikeKeys
,PropertyLikeKeys
; remove exports of utility typesArgumentsOf
,ArgsType
,ConstructorArgumentsOf
- TS builtin utility typesConstructorParameters
andParameters
should be used instead (#β12435, #β12489) -
[jest-mock]
ImproveisMockFunction
to infer types of passed function (#β12442) -
[jest-mock]
[BREAKING] Improve the usage ofjest.fn
generic type argument (#β12489) -
[jest-mock]
Add support for auto-mocking async generator functions (#β11080) -
[jest-mock]
Addcontexts
member to mock functions (#β12601) -
[@jest/reporters]
Add GitHub Actions reporter (#β11320, #β12658) -
[@jest/reporters]
PassreporterContext
to custom reporter constructors as third argument (#β12657) -
[jest-resolve]
[BREAKING] Add support forpackage.json
exports
(#β11961, #β12373) -
[jest-resolve]
Support package self-reference (#β12682) -
[jest-resolve, jest-runtime]
Add support fordata:
URI import and mock (#β12392) -
[jest-resolve, jest-runtime]
Add support for async resolver (#β11540) -
[jest-resolve]
[BREAKING] Removebrowser?: boolean
from resolver options,conditions: ['browser']
should be used instead (#β12707) -
[jest-resolve]
ExposeJestResolver
,AsyncResolver
,SyncResolver
,PackageFilter
,PathFilter
andPackageJSON
types (#β12707, (#β12712) -
[jest-runner]
AllowsetupFiles
module to export an async function (#β12042) -
[jest-runner]
Allow passingtestEnvironmentOptions
via docblocks (#β12470) -
[jest-runner]
ExposeCallbackTestRunner
,EmittingTestRunner
abstract classes andCallbackTestRunnerInterface
,EmittingTestRunnerInterface
to help typing third party runners (#β12646, #β12715) -
[jest-runner]
Lock version ofsource-map-support
to 0.5.13 (#β12720) -
[jest-runtime]
[BREAKING]Runtime.createHasteMap
now returns a promise (#β12008) -
[jest-runtime]
Callingjest.resetModules
function will clear FS and transform cache (#β12531) -
[jest-runtime]
[BREAKING] RemoveContext
type export, it must be imported from@jest/test-result
(#β12685) -
[jest-runtime]
Addimport.meta.jest
(#β12698) -
[@jest/schemas]
New module for JSON schemas for Jest's config (#β12384) -
[@jest/source-map]
Migrate fromsource-map
to@jridgewell/trace-mapping
(#β12692) -
[jest-transform]
[BREAKING] Make it required forprocess()
andprocessAsync()
methods to always return structured data (#β12638) -
[jest-test-result]
Add duration property to JSON test output (#β12518) -
[jest-watcher]
[BREAKING] MakePatternPrompt
class to takeentityName
as third constructor parameter instead ofthis._entityName
(#β12591) -
[jest-worker]
[BREAKING] Allow only absoluteworkerPath
(#β12343) -
[jest-worker]
[BREAKING] Default to advanced serialization when using child process workers (#β10983) -
[pretty-format]
NewmaxWidth
parameter (#β12402)
Fixes
-
[*]
Usesha256
instead ofmd5
as hashing algortihm for compatibility with FIPS systems (#β12722) -
[babel-jest]
[BREAKING] PassrootDir
asroot
in Babel's options (#β12689) -
[expect]
Move typings of.not
,.rejects
and.resolves
modifiers outside ofMatchers
interface (#β12346) -
[expect]
Throw useful error ifexpect.extend
is called with invalid matchers (#β12488) -
[expect]
FixiterableEquality
ignores other properties (#β8359) -
[expect]
Fix print for thecloseTo
matcher (#β12626) -
[jest-changed-files]
ImprovechangedFilesWithAncestor
pattern for Mercurial SCM (#β12322) -
[jest-circus, @​jest/types]
Disallow undefined value inTestContext
type (#β12507) -
[jest-config]
Correctly detect CI environment and update snapshots accordingly (#β12378) -
[jest-config]
PassmoduleTypes
tots-node
to enforce CJS when transpiling (#β12397) -
[jest-config]
[BREAKING] Addmjs
andcjs
to defaultmoduleFileExtensions
config (#β12578) -
[jest-config, jest-haste-map]
Allow searching for tests innode_modules
by exposingretainAllFiles
(#β11084) -
[jest-core]
[BREAKING] Exit with status1
if no tests are found with--findRelatedTests
flag (#β12487) -
[jest-core]
Do not report unref-ed subprocesses as open handles (#β12705) -
[jest-each]
%#
is not replaced with index of the test case (#β12517) -
[jest-each]
Fixes error message with incorrect count of missing arguments (#β12464) -
[jest-environment-jsdom]
Makejsdom
accessible to extending environments again (#β12232) -
[jest-environment-jsdom]
Log JSDOM errors more cleanly (#β12386) -
[jest-environment-node]
AddMessageChannel
,MessageEvent
to globals (#β12553) -
[jest-environment-node]
AddstructuredClone
to globals (#β12631) -
[@jest/expect-utils]
[BREAKING] Fix false positives when looking forundefined
prop (#β8923) -
[jest-haste-map]
Don't use partial results if file crawl errors (#β12420) -
[jest-haste-map]
Make watchman existence check lazy+async (#β12675) -
[jest-jasmine2, jest-types]
[BREAKING] Move alljasmine
specific types from@jest/types
to its own package (#β12125) -
[jest-jasmine2]
Do not setduration
to0
for skipped tests (#β12518) -
[jest-matcher-utils]
Pass maxWidth topretty-format
to avoid printing every element in arrays by default (#β12402) -
[jest-mock]
Fix function overloads forspyOn
to allow more correct type inference in complex object (#β12442) -
[jest-mock]
Handle overriddenFunction.name
property (#β12674) -
[@jest/reporters]
Notifications generated by the--notify
flag are no longer persistent in GNOME Shell. (#β11733) -
[@jest/reporters]
Move missing icon file which is needed forNotifyReporter
class. (#β12593) -
[@jest/reporters]
Updatev8-to-istanbul
(#β12697) -
[jest-resolver]
Call custom resolver with core node.js modules (#β12654) -
[jest-runner]
Correctly resolvesource-map-support
(#β12706) -
[jest-worker]
FixFarm
execution results memory leak (#β12497)
Chore & Maintenance
-
[*]
[BREAKING] Drop support for Node v10 and v15 and target first LTS16.13.0
(#β12220) -
[*]
[BREAKING] Drop support for[email protected]
, minimum version is now4.3
(#β11142, #β12648) -
[*]
Bundle all.d.ts
files into a singleindex.d.ts
per module (#β12345) -
[*]
UseglobalThis
instead ofglobal
(#β12447) -
[babel-jest]
[BREAKING] Only exportcreateTransformer
(#β12407) -
[docs]
Add note about not mixingdone()
with Promises (#β11077) -
[docs, examples]
Update React examples to match with the new React guidelines for code examples (#β12217) -
[docs]
Add clarity for module factory hoisting limitations (#β12453) -
[docs]
Add more information about how code transformers work (#β12407) -
[docs]
Add upgrading guide (#β12633) -
[expect]
[BREAKING] Remove support for importingbuild/utils
(#β12323) -
[expect]
[BREAKING] Migrate to ESM (#β12344) -
[expect]
[BREAKING] Snapshot matcher types are moved to@jest/expect
(#β12404) -
[jest-cli]
Updateyargs
to v17 (#β12357) -
[jest-config]
[BREAKING] RemovegetTestEnvironment
export (#β12353) -
[jest-config]
[BREAKING] Rename config optionname
toid
(#β11981) -
[jest-create-cache-key-function]
Added README.md file with basic usage instructions (#β12492) -
[@jest/core]
Useindex.ts
instead ofjest.ts
as main export (#β12329) -
[jest-environment-jsdom]
[BREAKING] Migrate to ESM (#β12340) -
[jest-environment-node]
[BREAKING] Migrate to ESM (#β12340) -
[jest-haste-map]
Remove legacyisRegExpSupported
(#β12676) -
[@jest/fake-timers]
Update@sinonjs/fake_timers
to v9 (#β12357) -
[jest-jasmine2, jest-runtime]
[BREAKING] UseSymbol
to passjest.setTimeout
value instead ofjasmine
specific logic (#β12124) -
[jest-phabricator]
[BREAKING] Migrate to ESM (#β12341) -
[jest-resolve]
[BREAKING] MakerequireResolveFunction
argument mandatory (#β12353) -
[jest-runner]
[BREAKING] Remove some type exports from@jest/test-result
(#β12353) -
[jest-runner]
[BREAKING] Second argument to constructor (Context
) is not optional (#β12640) -
[jest-serializer]
[BREAKING] Deprecate package in favour of usingv8
APIs directly (#β12391) -
[jest-snapshot]
[BREAKING] Migrate to ESM (#β12342) -
[jest-transform]
Updatewrite-file-atomic
to v4 (#β12357) -
[jest-types]
[BREAKING] RemoveConfig.Glob
andConfig.Path
(#β12406) -
[jest]
Useindex.ts
instead ofjest.ts
as main export (#β12329)
Performance
-
[jest-haste-map]
[BREAKING] Default tonode
crawler over shelling out tofind
ifwatchman
is not enabled (#β12320)
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.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.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.
v27.0.6
Fixes
-
[*]
Publish all modules to include the build change in (#β11569)
v27.0.5
Features
-
[@jest/fake-timers]
Flush callbacks scheduled withrequestAnimationFrame
every 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 addsetImmediate
andclearImmediate
if they do not exist in the global environment (#β11599) -
[@jest/reporters]
Allownode-notifier@10
as peer dependency (#β11523) -
[@jest/reporters]
Updatev8-to-istanbul
(#β11523)
v27.0.2
Features
-
[jest-circus]
Add some APIs to make it easier to build your own test runner -
[jest-reporters]
Expose thegetResultHeader
util (#β11460) -
[jest-resolver]
Exportresolve*
utils for different Jest modules (#β11466) -
[@jest/test-result]
ExportTest
,TestEvents
andTestFileEvent
(#β11466)
Fixes
-
[jest-circus]
Add missingslash
dependency (#β11465) -
[jest-circus, @​jest/test-sequencer]
Remove dependency onjest-runner
(#β11466) -
[jest-config]
Resolveconfig.runner
to absolute path (#β11465) -
[jest-config]
Make sure to support functions as config (#β11475) -
[jest-core]
Do not warn aboutDNSCHANNEL
handles when using the--detectOpenHandles
option (#β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 deprecatedrequest
package (#β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-circus
as default test runner (#β10686) -
[jest-config]
Add support forpreset
written in ESM (#β11200) -
[jest-config, jest-runtime]
Support ESM for files other than.js
and.mjs
(#β10823) -
[jest-config, jest-runtime]
[BREAKING] Use "modern" implementation as default for fake timers (#β10874 & #β11197) -
[jest-config
Allow passingforceNodeFilesystemAPI
through 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]
makeTestWatcher
extendemittery
(#β10324) -
[jest-core]
Run failed tests interactively the same way we do with snapshots (#β10858) -
[jest-core]
moreTestSequencer
methods can be async (#β10980) -
[jest-core]
Add support fortestSequencer
written in ESM (#β11207) -
[jest-core]
Add support forglobalSetup
andglobalTeardown
written in ESM (#β11267) -
[jest-core]
Add support forwatchPlugins
written in ESM (#β11315) -
[jest-core]
Add support forrunner
written in ESM (#β11232) -
[jest-core]
Add support forreporters
written 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-timers
to v7 (#β11198) -
[jest-haste-map]
Handle injected scm clocks (#β10966) -
[jest-haste-map]
AddenableSymlinks
configuration option to follow symlinks for test files (#β9351) -
[jest-repl, jest-runner]
[BREAKING] Run transforms over environment (#β8751) -
[jest-repl]
Add support fortestEnvironment
written 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 fortestRunner
written 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'sprocess
andgetCacheKey
functions (#β10926) -
[jest-transform]
Add support for transformers written in ESM (#β11163) -
[jest-transform]
[BREAKING] Do not exportScriptTransformer
class, instead export the async functioncreateScriptTransformer
(#β11163) -
[jest-transform]
Async code transformations (#β9889) -
[jest-transform]
Support transpiled transformers (#β11193) -
[jest-transform]
[BREAKING]requireAndTranspileModule
always return aPromise
, and the third parameter type is changed toRequireAndTranspileModuleOptions
which acceptapplyInteropRequireDefault
option (#β11232) -
[jest-transform]
[BREAKING]createTranspilingRequire
return function which return aPromise
now (#β11232) -
[jest-util]
add requireOrImportModule for importing CJS or ESM (#β11199) -
[jest-util]
addapplyInteropRequireDefault
option 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 aPriorityQueue
implementation. (#β10921) -
[jest-worker]
Add in-order scheduling policy to jest worker (10902) -
[pretty-format]
Better print for sparse arrays (11326) -
[pretty-print]
Add optionprintBasicPrototype
which determines whether or not the prototype should be printed for raw objects or arrays (#β11441)
Fixes
-
[babel-plugin-jest-hoist]
Add__dirname
and__filename
to whitelisted globals (#β10903) -
[expect]
[BREAKING] Reviseexpect.not.objectContaining()
to be the inverse ofexpect.objectContaining()
, as documented. (#β10708) -
[expect]
[BREAKING] MaketoContain
more strict with the received type (#β10119 & #β10929) -
[expect]
[BREAKING]matcherResult
onJestAssertionError
are now strings rather than functions (#β10989) -
[jest-circus]
Fixed the issue of beforeAll & afterAll hooks getting executed even if it is inside a skippeddescribe
block (#β10806) -
[jest-circus]
FixtestLocation
on 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.dir
now respects the second argument correctly (#β10638) -
[jest-core]
Don't report PerformanceObserver as open handle (#β11123) -
[jest-core]
UseWeakRef
to hold timers when detecting open handles (#β11277) -
[jest-core]
Correctly detect open handles that were created in test functions usingdone
callbacks (#β11382) -
[jest-core]
Do not collectRANDOMBYTESREQUEST
as 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 forrunScript
for test environments (#β11155) -
[jest-environment-jsdom]
Use inner realmβsArrayBuffer
constructor (#β10885) -
[jest-environment-jsdom]
[BREAKING] Remove Node globalssetImmediate
andclearImmediate
(#β11222) -
[jest-get-type]
[BREAKING] Convert to ES Module ([#β11359](https:
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.
π Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.