data-snapshot
data-snapshot copied to clipboard
Update Babel (major)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
babel-eslint | 8.2.3 -> 10.1.0 |
||||
babel-jest (source) | 23.6.0 -> 29.7.0 |
Release Notes
babel/babel-eslint (babel-eslint)
v10.1.0
v10.0.3
Fixes https://github.com/babel/babel-eslint/issues/791, also https://github.com/eslint/eslint/issues/12117
Some context: https://github.com/babel/babel-eslint/pull/793#issuecomment-524435971
We ended up going with @βJLHwung's PR https://github.com/babel/babel-eslint/pull/794 which uses ESLint's deps instead of going with peerDeps since it really depends on the version being used and we don't want users to have to install it directly on their own.
babel-eslint is patching patches of the dependencies of ESLint itself so these kinds of issues have happened in the past. We'll need to look into figuring out how to have a more solid way of modifying behavior instead of this monkeypatching type of thing for future releases.
v10.0.2
v10.0.1
v10.0.1
The TypeAlias
"conversion" to a function has issues. Sounds like we need to rethink the change, most likely we can just actually change the scoping rather than hardcode an AST change.
v10.0.0
v10.0.0
Small breaking change: add a peerDependency starting from the ESLint version that added a parser feature that we were monkeypatching before (and drop that code). If already using ESLint 5 shouldn't be any different.
- Bugfix for
TypeAlias
: https://github.com/babel/babel-eslint/pull/584
/* @​flow */
type Node<T> = { head: T; tail: Node<T> }
// or
type File = {chunks: Array<Chunk>}
type Chunk = {file: File}
- Update to test against ESLint 5, add a peerDependency: https://github.com/babel/babel-eslint/pull/689
- Drop monkeypatching behavior: https://github.com/babel/babel-eslint/pull/690
v9.0.0
v9.0.0
We've released v7: https://twitter.com/left_pad/status/1034204330352500736, so this just updates babel-eslint to use those versions internally. That in itself doesn't break anything but:
- Babel now supports the new decorators proposal by default, so we need to switch between the new and the old proposal. This is a breaking change.
To enable the legacy decorators proposal users should add a specific parser option:
{
parserOptions: {
ecmaFeatures: {
legacyDecorators: true
}
}
}
- Babel removed the support for Node 4 , so I propagated that here.
v8.2.6
v8.2.5
v8.2.4
jestjs/jest (babel-jest)
v29.7.0
Features
-
[create-jest]
Addnpm init
/yarn create
initialiser for Jest projects (#β14465) -
[jest-validate]
Allow deprecation warnings for unknown options (#β14499)
Fixes
-
[jest-resolver]
Replace unmatched capture groups inmoduleNameMapper
with empty string instead ofundefined
(#β14507) -
[jest-snapshot]
Allow for strings as well as template literals in inline snapshots (#β14465) -
[@jest/test-sequencer]
Calculate test runtime ifperStats.duration
is missing (#β14473)
Performance
-
[@jest/create-cache-key-function]
Cache access ofNODE_ENV
andBABEL_ENV
(#β14455)
Chore & Maintenance
-
[jest-cli]
Move internal config initialisation logic to thecreate-jest
package (#β14465)
v29.6.4
Fixes
-
[jest-core]
Fix typo inscheduleAndRun
performance marker (#β14434) -
[jest-environment-node]
Make sureatob
andbtoa
are writeable in Node 20 (#β14446) -
[jest-worker]
Additional error wrapper forparentPort.postMessage
to fix unhandledDataCloneError
. (#β14437)
v29.6.3
Fixes
-
[expect, @​jest/expect-utils]
ObjectContaining
supportsumbol
as key (#β14414) -
[expect]
Remove@types/node
from dependencies (#β14385) -
[jest-core]
Use workers in watch mode by default to avoid crashes (#β14059 & #β14085). -
[jest-reporters]
Updateistanbul-lib-instrument
dependency to v6. (#β14401) -
[jest-mock]
Revert #β13692 as it was a breaking change (#β14429) -
[jest-mock]
Revert #β13866 as it was a breaking change (#β14429) -
[jest-mock]
Revert #β13867 as it was a breaking change (#β14429) -
[@jest/reporters]
Marks Reporter's hooks as optional (#β14433) -
[jest-runtime]
Fix dynamic ESM import module bug when loaded module throughjest.isolateModulesAsync
(#β14397)
Chore & Maintenance
-
[jest-changed-files, jest-circus, jest-console, @​jest/core, @​jest/runtime, @​jest/transform]
Useinvariant
andnotEmpty
fromjest-util
rather than own internal (#β14366)
v29.6.2
Fixes
-
[jest-circus]
Fix snapshot matchers in concurrent tests when nr of tests exceedsmaxConcurrency
(#β14335) -
[@jest/core]
When running global setup and teardown, do not try to change themessage
property of the thrown error object when themessage
property is unwritable (#β14113) -
[jest-snapshot]
Move@types/prettier
fromdependencies
todevDependencies
(#β14328) -
[jest-snapshot]
Throw an explicit error if Prettier v3 is used (#β14367) -
[jest-reporters]
Add "skipped" and "todo" symbols to Github Actions Reporter (#β14309)
Chore & Maintenance
-
[@jest/core]
Usepluralize
fromjest-util
rather than own internal (#β14322)
v29.6.1
Fixes
v29.6.0
Features
-
[jest-circus, jest-snapshot]
Add support for snapshot matchers in concurrent tests (#β14139) -
[jest-cli]
Include type definitions to generated config files (#β14078) -
[jest-snapshot]
Support arrays as property matchers (#β14025) -
[jest-core, jest-circus, jest-reporter, jest-runner]
Added support for reporting about start individual test cases using jest-circus (#β14174)
Fixes
-
[jest-circus]
Prevent false test failures caused by promise rejections handled asynchronously (#β14110) -
[jest-config]
Handle frozen config object (#β14054) -
[jest-config]
AllowcoverageDirectory
andcollectCoverageFrom
in project config (#β14180) -
[jest-core]
Always use workers in watch mode to avoid crashes (#β14059). -
[jest-environment-jsdom, jest-environment-node]
Fix assignment ofcustomExportConditions
viatestEnvironmentOptions
when custom env subclass defines a default value (#β13989) -
[jest-matcher-utils]
Fix copying value of inherited getters (#β14007) -
[jest-mock]
Tweak typings to allowjest.replaceProperty()
replace methods (#β14008) -
[jest-mock]
Improve user input validation and error messages ofspyOn
andreplaceProperty
methods (#β14087) -
[jest-runtime]
Bindjest.isolateModulesAsync
tothis
(#β14083) -
[jest-runtime]
ForwardwrapperLength
to theScript
constructor ascolumnOffset
for accurate debugging (#β14148) -
[jest-runtime]
Guard_isMockFunction
access within
(#β14188) -
[jest-snapshot]
Fix a potential bug when not using prettier and improve performance (#β14036) -
[@jest/transform]
Do not instrument.json
modules (#β14048) -
[jest-worker]
Restart a shut down worker before sending it a task (#β14015)
Chore & Maintenance
-
[*]
Updatesemver
dependency to get vulnerability fix (#β14262) -
[docs]
Updated documentation for the--runTestsByPath
CLI command (#β14004) -
[docs]
Updated documentation regarding the synchronous fallback when asynchronous code transforms are unavailable (#β14056) -
[docs]
Update jest statistics of use and downloads in website Index.
v29.5.0
Features
-
[jest-changed-files]
Support Sapling (#β13941) -
[jest-circus, @​jest/cli, jest-config]
Add feature to randomize order of tests via CLI flag or through the config file(#β12922) -
[jest-cli, jest-config, @​jest/core, jest-haste-map, @​jest/reporters, jest-runner, jest-runtime, @​jest/types]
AddworkerThreads
configuration option to allow using worker threads for parallelization (#β13939) -
[jest-cli]
ExportyargsOptions
(#β13970) -
[jest-config]
AddopenHandlesTimeout
option to configure possible open handles warning. (#β13875) -
[@jest/create-cache-key-function]
Allow passinglength
argument tocreateCacheKey()
function and set its default value to16
on Windows (#β13827) -
[jest-message-util]
Add support for AggregateError (#β13946 & #β13947) -
[jest-message-util]
Add support for Error causes intest
andit
(#β13935 & #β13966) -
[jest-reporters]
AddsummaryThreshold
option to summary reporter to allow overriding the internal threshold that is used to print the summary of all failed tests when the number of test suites surpasses it (#β13895) -
[jest-runtime]
Expose@sinonjs/fake-timers
async APIs functionsadvanceTimersByTimeAsync(msToRun)
(tickAsync(msToRun)
),advanceTimersToNextTimerAsync(steps)
(nextAsync
),runAllTimersAsync
(runAllAsync
), andrunOnlyPendingTimersAsync
(runToLastAsync
) (#β13981) -
[jest-runtime, @​jest/transform]
Allow V8 coverage provider to collect coverage from files which were not loaded explicitly (#β13974) -
[jest-snapshot]
Add support tocts
andmts
TypeScript files to inline snapshots (#β13975) -
[jest-worker]
Addstart
method to worker farms (#β13937) -
[jest-worker]
Support passing a URL as path to worker (#β13982)
Fixes
-
[babel-plugin-jest-hoist]
Fix unwanted hoisting of nestedjest
usages (#β13952) -
[jest-circus]
Send test case results fortodo
tests (#β13915) -
[jest-circus]
Update message printed on test timeout (#β13830) -
[jest-circus]
Avoid creating the word "testfalse" whentakesDoneCallback
isfalse
in the message printed on test timeout AND updated timeouts test (#β13954) -
[jest-environment-jsdom]
Stop settingdocument
tonull
on teardown (#β13972) -
[@jest/expect-utils]
UpdatetoStrictEqual()
to be able to checkjest.fn().mock.calls
(#β13960) -
[@jest/test-result]
AllowTestResultsProcessor
type to return a Promise (#β13950)
Chore & Maintenance
-
[jest-snapshot]
Remove dependency onjest-haste-map
(#β13977)
v29.4.3
Features
-
[expect]
UpdatetoThrow()
to be able to use errorcause
s (#β13606) -
[jest-core]
allow to useworkerIdleMemoryLimit
with only 1 worker orrunInBand
option (#β13846) -
[jest-message-util]
Add support for errorcause
s (#β13868 & #β13912) -
[jest-runtime]
Revertimport assertions
for JSON modules as it's been relegated to Stage 2 (#β13911)
Fixes
-
[@jest/expect-utils]
subsetEquality
should consider also an object's inherited string keys (#β13824) -
[jest-mock]
Clear mock state whenjest.restoreAllMocks()
is called (#β13867) -
[jest-mock]
PreventmockImplementationOnce
andmockReturnValueOnce
bleeding intowithImplementation
(#β13888) -
[jest-mock]
Do not restore mocks whenjest.resetAllMocks()
is called (#β13866)
v29.4.2
Features
-
[@jest/core]
Instrument significant lifecycle events withperformance.mark()
(#β13859)
Fixes
-
[expect, @​jest/expect]
Provide type ofactual
as a generic argument toMatchers
to allow better-typed extensions (#β13848) -
[jest-circus]
Added explicit mention of test failing becausedone()
is not being called in error message (#β13847) -
[jest-runtime]
Handle CJS re-exports of node core modules from ESM (#β13856) -
[jest-transform]
Downgradewrite-file-atomic
to v4 (#β13853) -
[jest-worker]
Ignore IPC messages not intended for Jest (#β13543)
Chore & Maintenance
-
[*]
make sure to exclude.eslintcache
from published module (#β13832) -
[docs]
Cleanup incorrect links in CHANGELOG.md (#β13857)
v29.4.1
Features
-
[expect, jest-circus, @​jest/types]
ImplementnumPassingAsserts
of testResults to track the number of passing asserts in a test (#β13795) -
[jest-core]
Add newlines to JSON output (#β13817) -
[@jest/reporters]
Automatic log folding in GitHub Actions Reporter (#β13626)
Fixes
-
[@jest/expect-utils]
toMatchObject
diffs should includeSymbol
properties (#β13810) -
[jest-runtime]
Handle missingreplaceProperty
(#β13823) -
[@jest/types]
Add partial support fordone
callbacks in typings ofeach
(#β13756)
v29.4.0
Features
-
[expect, @​jest/expect-utils]
Support custom equality testers (#β13654) -
[jest-config, jest-worker]
Useos.availableParallelism
if available to calculate number of workers to spawn (#β13738) -
[@jest/globals, jest-mock]
Addjest.replaceProperty()
that replaces property value (#β13496) -
[jest-haste-map]
ignore Sapling vcs directories (.sl/
) (#β13674) -
[jest-resolve]
Support subpath imports (#β13705, #β13723, #β13777) -
[jest-runtime]
Addjest.isolateModulesAsync
for scoped module initialization of asynchronous functions (#β13680) -
[jest-runtime]
Addjest.isEnvironmentTornDown
function (#β13741) -
[jest-test-result]
Addedskipped
andfocused
status toFormattedTestResult
(#β13700) -
[jest-transform]
Support for asynchronouscreateTransformer
(#β13762)
Fixes
-
[jest-environment-node]
Fix non-configurable globals (#β13687) -
[@jest/expect-utils]
toMatchObject
should handleSymbol
properties (#β13639) -
[jest-mock]
FixmockReset
andresetAllMocks
undefined
return value(#β13692) -
[jest-resolve]
Add global paths torequire.resolve.paths
(#β13633) -
[jest-resolve]
Correct node core module detection when usingnode:
specifiers (#β13806) -
[jest-runtime]
Support WASM files that import JS resources (#β13608) -
[jest-runtime]
Use thescriptTransformer
cache injest-runner
(#β13735) -
[jest-runtime]
Enforce import assertions when importing JSON in ESM (#β12755 & #β13805) -
[jest-snapshot]
Make sure to importbabel
outside of the sandbox (#β13694) -
[jest-transform]
Ensure the correct configuration is passed to preprocessors specified multiple times in thetransform
option (#β13770)
Chore & Maintenance
-
[@jest/fake-timers]
Update@sinonjs/fake-timers
(#β13612) -
[docs]
Improve custom puppeteer example to prevent worker warnings (#β13619)
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 (#β12899) -
[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 pass
Configuration
π Schedule: Branch creation - "before 3am every weekday" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR is behind base branch, 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, check this box
This PR was generated by Mend Renovate. View the repository job log.