Releases: jestjs/jest
v29.0.0-alpha.6
What's Changed
- chore: update @jridgewell/trace-mapping by @SimenB in #13119
- refactor(jest-mock)!: rework
Mocked*
utility types by @mrazauskas in #13123 - fix(jest-mock): export
MockedShallow
type by @mrazauskas in #13124 - feat(@jest/globals): add
jest.Mocked
,jest.MockedClass
,jest.MockedFunction
andjest.MockedObject
utility types by @mrazauskas in #12727 - refactor(jest-mock)!: change the default
jest.mocked
helperβs behaviour to deep mocked by @mrazauskas in #13125 - chore(types): separate MatcherContext, MatcherUtils and MatcherState by @SimenB in #13141
- feat(circus): added each to failing tests by @kkyusufk in #13142
- chore: make prettierPath optional in
SnapshotState
by @SimenB in #13149 - feat: Let
babel
find config when updating inline snapshots by @SimenB in #13150 - fix: Allow updating inline snapshots when test includes JSX by @eps1lon in #12760
New Contributors
- @liuxingbaoyu made their first contribution in #13120
- @Trim made their first contribution in #13128
- @kkyusufk made their first contribution in #13142
Full Changelog: v29.0.0-alpha.5...v29.0.0-alpha.6
v29.0.0-alpha.5
v29.0.0-alpha.4
What's Changed
- fix: repair caching of typescript compiler instances by @zebreus in #13099
- fix: add workerIdleMemoryLimit to ValidConfig by @AndrewLeedham in #13105
New Contributors
Full Changelog: v29.0.0-alpha.3...v29.0.0-alpha.4
v29.0.0-alpha.3
Features
[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)
Fixes
[jest-haste-map]
Increase the maximum possible file size that jest-haste-map can handle (#13094)
New Contributors
- @matheus-rodrigues00 made their first contribution in #13090
- @lanpai made their first contribution in #13094
Full Changelog: v29.0.0-alpha.1...v29.0.0-alpha.3
v29.0.0-alpha.1
Features
[pretty-format]
[BREAKING] RemoveConvertAnsi
plugin in favour ofjest-serializer-ansi-escapes
(#13040)
Fixes
[jest-worker]
When a process runs out of memory worker exits correctly and doesn't spin indefinitely (#13054)[@jest/expect-utils]
Fix deep equality of ImmutableJS Record (#13055)
New Contributors
Full Changelog: v29.0.0-alpha.0...v29.0.0-alpha.1
v29.0.0-alpha.0
Features
[jest-config]
[BREAKING] MakesnapshotFormat
default toescapeString: false
andprintBasicPrototype: false
(#13036)[jest-environment-jsdom]
[BREAKING] Upgrade tojsdom@20
(#13037)
Chore & Maintenance
[*]
[BREAKING] Drop support for Node v12 and v17 (#13033)[jest-leak-detector]
Remove support forweak-napi
(#13035)
Full Changelog: v28.1.3...v29.0.0-alpha.0
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)
New Contributors
- @joshkel made their first contribution in #12960
- @enrilzhou made their first contribution in #12973
- @milahu made their first contribution in #12983
- @MiguelYax made their first contribution in #13000
- @kaffarell made their first contribution in #13015
- @TheKhanj made their first contribution in #12988
- @Fdawgs made their first contribution in #13019
Full Changelog: v28.1.2...v28.1.3
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)
New Contributors
Full Changelog: v28.1.1...v28.1.2
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) -
[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)
New Contributors
- @owjsub made their first contribution in #12324
- @Aveline-art made their first contribution in #12831
- @spenserblack made their first contribution in #12836
- @dimitropoulos made their first contribution in #12817
- @ullumullu made their first contribution in #12845
- @limonte made their first contribution in #12851
- @Dennis273 made their first contribution in #12870
- @shreykinshu made their first contribution in #12886
- @pbomb made their first contribution in #12899
- @ChrisCoastal made their first contribution in #12887
- @HyunseungLee-Travis made their first contribution in #12810
Full Changelog: v28.1.0...v28.1.1
v28.1.0
Features
[jest-circus]
Addfailing
test modifier that inverts the behaviour 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)
New Contributors
- @romellem made their first contribution in #12763
- @cristianrgreco made their first contribution in #12789
- @rethab made their first contribution in #12791
- @gramsco made their first contribution in #12799
- @michalwarda made their first contribution in #12610
- @mikemaccana made their first contribution in #12809
Full Changelog: v28.0.3...v28.1.0