rollup-jest-boilerplate
rollup-jest-boilerplate copied to clipboard
Update jest monorepo to v29 (major)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
babel-jest | 24.9.0 -> 29.3.1 |
||||
jest (source) | 24.9.0 -> 29.3.1 |
Release Notes
facebook/jest
v29.3.1
Fixes
-
[jest-config]
Do not warn aboutpreset
inProjectConfig
(#β13583)
Performance
-
[jest-transform]
Defer creation of cache directory (#β13420)
v29.3.0
Features
-
[jest-runtime]
Support WebAssembly (Wasm) imports in ESM modules (#β13505)
Fixes
-
[jest-config]
Add config validation forprojects
option (#β13565) -
[jest-mock]
Treat cjs modules as objects so they can be mocked (#β13513) -
[jest-worker]
Throw an error instead of hanging when jest workers terminate unexpectedly (#β13566)
Chore & Maintenance
-
[@jest/transform]
Updateconvert-source-map
(#β13509) -
[docs]
MentiontoStrictEqual
in UsingMatchers docs. (#β13560)
v29.2.2
Fixes
-
[@jest/test-sequencer]
Make sure sharding does not produce empty groups (#β13476) -
[jest-circus]
Test marked astodo
are shown as todo when inside a focussed describe (#β13504) -
[jest-mock]
Ensure mock resolved and rejected values are promises from correct realm (#β13503) -
[jest-snapshot]
Don't highlight passing asymmetric property matchers in snapshot diff (#β13480)
Chore & Maintenance
-
[docs]
Update link to Jest 28 upgrade guide in error message (#β13483) -
[jest-runner, jest-watcher]
Updateemittery
(#β13490)
v29.2.1
Features
-
[@jest/globals, jest-mock]
Addjest.Spied*
utility types (#β13440)
Fixes
-
[jest-environment-node]
makeglobalThis.performance
writable for Node 19 and fake timers (#β13467) -
[jest-mock]
Revert #β13398 to restore mocking of setters (#β13472)
Performance
-
[*]
Use sha1 instead of sha256 for hashing (#β13421)
v29.2.0
Features
-
[@jest/cli, jest-config]
A seed for the test run will be randomly generated, or set by a CLI option (#β13400) -
[@jest/cli, jest-config]
--show-seed
will display the seed value in the report, and can be set via a CLI flag or through the config file (#β13400) -
[jest-config]
AddreadInitialConfig
utility function (#β13356) -
[jest-core]
AllowtestResultsProcessor
to be async (#β13343) -
[@jest/environment, jest-environment-node, jest-environment-jsdom, jest-runtime]
AddgetSeed()
to thejest
object (#β13400) -
[expect, @​jest/expect-utils]
AllowisA
utility to take a type argument (#β13355) -
[expect]
ExposeAsyncExpectationResult
andSyncExpectationResult
types (#β13411)
Fixes
-
[babel-plugin-jest-hoist]
IgnoreTSTypeQuery
when checking for hoisted references (#β13367) -
[jest-core]
FixdetectOpenHandles
false positives for some special objects such asTLSWRAP
(#β13414) -
[jest-mock]
Fix mocking of getters and setters on classes (#β13398) -
[jest-reporters]
Revert: Transform file paths into hyperlinks (#β13399) -
[@jest/types]
Infer type ofeach
table correctly when the table is a tuple or array (#β13381) -
[@jest/types]
Rework typings to allow the*ReturnedWith
matchers to be called with no argument (#β13385)
Chore & Maintenance
-
[*]
Update@babel/*
deps, resulting in slightly different stack traces foreach
(#β13422)
Performance
-
[jest-runner]
Do not instrument v8 coverage data if coverage should not be collected (#β13282)
v29.1.2
Fixes
-
[expect, @​jest/expect]
Revert buggy inference of argument types for*CalledWith
and*ReturnedWith
matchers introduced in 29.1.0 (#β13339) -
[jest-worker]
Add missing dependency onjest-util
(#β13341)
v29.1.0
Features
-
[expect, @​jest/expect]
Support type inference for function parameters inCalledWith
assertions (#β13268) -
[expect, @​jest/expect]
Infer type of*ReturnedWith
matchers argument (#β13278) -
[@jest/environment, jest-runtime]
Allowjest.requireActual
andjest.requireMock
to take a type argument (#β13253) -
[@jest/environment]
Allowjest.mock
andjest.doMock
to take a type argument (#β13254) -
[@jest/fake-timers]
Addjest.now()
to return the current fake clock time (#β13244, #β13246) -
[@jest/mock]
AddwithImplementation
method for temporarily overriding a mock (#β13281) -
[expect]
ExporttoThrow*
matchers (#β13328)
Fixes
-
[jest-circus, jest-jasmine2]
Fix error messages for Node'sassert.throes
(#β13322) -
[jest-haste-map]
Remove__proto__
usage (#β13256) -
[jest-mock]
ImprovespyOn
typings to handle optional properties (#β13247) -
[jest-mock]
Fix mocking of getters and setters on classes (#β13145) -
[jest-snapshot]
Throw useful error when an array is passed as property matchers (#β13263) -
[jest-snapshot]
Prioritize parser used in the project (#β13323) -
[jest-transform]
Attempt to work around issues with atomic writes on Windows (#β11423)
v29.0.3
Features
-
[@jest/environment, jest-runtime]
Allow passing a generic type argument tojest.createMockFromModule<T>()
method (#β13202) -
[expect]
ExposeExpectationResult
type (#β13240) -
[jest-snapshot]
ExposeContext
type (#β13240) -
[@jest/globals]
Addjest.Mock
type helper (#β13235)
Fixes
-
[jest-core]
CaptureexecError
duringTestScheduler.scheduleTests
and dispatch to reporters (#β13203) -
[jest-resolve]
Make sure to resolve module paths after looking atexports
(#β13242) -
[jest-resolve]
Improve error on module not found deep in therequire
stack (#β8704) -
[jest-snapshot]
Fix typings of snapshot matchers (#β13240)
Chore & Maintenance
-
[*]
Fix inconsistent workspace prefixes (#β13217) -
[jest-haste-map]
Expose a minimal public API to TypeScript (#β13023)
v29.0.2
Features
-
[jest-transform]
ExposeTransformFactory
type (#β13184)
Fixes
-
[babel-plugin-jest-hoist]
Support importedjest
in mock factory (#β13188) -
[jest-mock]
Align the behavior and return type ofgenerateFromMetadata
method (#β13207) -
[jest-runtime]
Supportjest.resetModules()
with ESM (#β13211)
v29.0.1
Fixes
-
[jest-snapshot]
PasssnapshotFormat
through when diffing snapshots (#β13181)
v29.0.0
Features
-
[expect]
[BREAKING] Differentiate betweenMatcherContext
MatcherUtils
andMatcherState
types (#β13141) -
[jest-circus]
Add support fortest.failing.each
(#β13142) -
[jest-config]
[BREAKING] MakesnapshotFormat
default toescapeString: false
andprintBasicPrototype: false
(#β13036) -
[jest-config]
[BREAKING] Remove undocumentedcollectCoverageOnlyFrom
option (#β13156) -
[jest-environment-jsdom]
[BREAKING] Upgrade tojsdom@20
(#β13037, #β13058) -
[@jest/globals]
Addjest.Mocked
,jest.MockedClass
,jest.MockedFunction
andjest.MockedObject
utility types (#β12727) -
[jest-mock]
[BREAKING] RefactorMocked*
utility types.MaybeMockedDeep
andMaybeMocked
becameMocked
andMockedShallow
respectively; only deep mocked variants ofMockedClass
,MockedFunction
andMockedObject
are exported (#β13123, #β13124) -
[jest-mock]
[BREAKING] Change the defaultjest.mocked
helperβs behavior to deep mocked (#β13125) -
[jest-snapshot]
[BREAKING] Letbabel
find config when updating inline snapshots (#β13150) -
[@jest/test-result, @​jest/types]
[BREAKING] ReplaceBytes
andMilliseconds
types withnumber
(#β13155) -
[jest-worker]
AddsworkerIdleMemoryLimit
option which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required (#β13056, #β13105, #β13106, #β13107) -
[pretty-format]
[BREAKING] RemoveConvertAnsi
plugin in favour ofjest-serializer-ansi-escapes
(#β13040) -
[pretty-format]
Allow to opt out from sorting object keys withcompareKeys: null
(#β12443)
Fixes
-
[jest-config]
Fix testing multiple projects with TypeScript config files (#β13099) -
[@jest/expect-utils]
Fix deep equality of ImmutableJS Record (#β13055) -
[jest-haste-map]
Increase the maximum possible file size that jest-haste-map can handle (#β13094) -
[jest-runtime]
Properly support CJS re-exports from dual packages (#β13170) -
[jest-snapshot]
MakeprettierPath
optional inSnapshotState
(#β13149) -
[jest-snapshot]
Fix parsing error from inline snapshot files withJSX
(#β12760) -
[jest-worker]
When a process runs out of memory worker exits correctly and doesn't spin indefinitely (#β13054)
Chore & Maintenance
-
[*]
[BREAKING] Drop support for Node v12 and v17 (#β13033) -
[docs]
Fix webpack name (#β13049) -
[docs]
Explicit how to setn
for--bail
(#β13128) -
[docs]
Update Enzyme URL (#β13166) -
[jest-leak-detector]
Remove support forweak-napi
(#β13035) -
[jest-snapshot]
[BREAKING] RequirerootDir
as argument toSnapshotState
(#β13150)
v28.1.3
Features
-
[jest-leak-detector]
Use nativeFinalizationRegistry
when it exists to get rid of external C dependency (#β12973)
Fixes
-
[jest-changed-files]
Fix a lock-up after repeated invocations (#β12757) -
[@jest/expect-utils]
Fix deep equality of ImmutableJS OrderedSets (#β12977) -
[jest-mock]
Add index signature support forspyOn
types (#β13013, #β13020) -
[jest-snapshot]
Fix indentation of awaited inline snapshots (#β12986)
Chore & Maintenance
-
[*]
Replace internal usage ofpretty-format/ConvertAnsi
withjest-serializer-ansi-escapes
(#β12935, #β13004) -
[docs]
Update spyOn docs (#β13000)
v28.1.2
Fixes
-
[jest-runtime]
Avoid star type import from@jest/globals
(#β12949)
Chore & Maintenance
-
[docs]
Mention that jest-codemods now supports Sinon (#β12898)
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](https://togithub.com/faceboo
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, check this box
This PR has been generated by Mend Renovate. View repository job log here.