Releases: jestjs/jest
Releases Β· jestjs/jest
v28.0.0-alpha.3
Fixes
[jest-resolve]
Support directory remapping inpackage.json
exports
(#12373)
Full Changelog: https://github.com/facebook/jest/compare/v28.0.0-alpha.2..v28.0.0-alpha.3
v28.0.0-alpha.2
Features
[@jest/expect]
New module which extendsexpect
withjest-snapshot
matchers (#12404, #12410)[jest-resolve, jest-runtime]
Add support fordata:
URI import and mock (#12392)[pretty-format]
NewmaxWidth
parameter (#12402)
Fixes
[jest-matcher-utils]
Pass maxWidth topretty-format
to avoid printing every element in arrays by default (#12402)
Chore & Maintenance
[expect]
[BREAKING] Snapshot matcher types are moved to@jest/expect
(#12404)
New Contributors
- @tbossi made their first contribution in #12392
- @ryanwilsonperkin made their first contribution in #12402
- @yesmeck made their first contribution in #12408
Full Changelog: v28.0.0-alpha.1...v28.0.0-alpha.2
v28.0.0-alpha.1
Features
[babel-jest]
ExportcreateTransformer
function (#12399)[expect]
ExposeAsymmetricMatchers
,MatcherFunction
andMatcherFunctionWithState
interfaces (#12363, #12376)[jest-config, @jest/types]
Addci
toGlobalConfig
(#12378)[@jest/schemas]
New module for JSON schemas for Jest's config (#12384)
Fixes
[jest-config]
Correctly detect CI environment and update snapshots accordingly (#12378)[jest-config]
PassmoduleTypes
tots-node
to enforce CJS when transpiling (#12397)
Chore & Maintenance
[docs, examples]
Update React examples to match with the new React guidelines for code examples (#12217)[docs]
Add note about not mixingdone()
with Promises (#11077)[jest-serializer]
[BREAKING] Deprecate package in favour of usingv8
APIs directly (#12391)
New Contributors
- @marcelltoth made their first contribution in #12290
- @soryy708 made their first contribution in #12010
- @dmitryvinn-fb made their first contribution in #12379
- @cola119 made their first contribution in #12375
- @holylander made their first contribution in #12257
- @jsjoeio made their first contribution in #11077
Full Changelog: v28.0.0-alpha.0...v28.0.0-alpha.1
v28.0.0-alpha.0
Features
[jest-config]
[BREAKING] Stop shippingjest-environment-jsdom
by default (#12354)[jest-config]
[BREAKING] Stop shippingjest-jasmine2
by default (#12355)[jest-environment-jsdom]
[BREAKING] Upgrade jsdom to 19.0.0 (#12290)[jest-environment-jsdom]
[BREAKING] Add defaultbrowser
condition toexportConditions
forjsdom
environment (#11924)[jest-environment-node]
[BREAKING] Add defaultnode
andnode-addon
conditions toexportConditions
fornode
environment (#11924)[@jest/expect-utils]
New module exporting utils forexpect
(#12323)[jest-resolve]
[BREAKING] Add support forpackage.json
exports
(#11961)[jest-worker]
[BREAKING] Allow only absoluteworkerPath
(#12343)
Fixes
[expect]
Move typings of.not
,.rejects
and.resolves
modifiers outside ofMatchers
interface (#12346)[jest-environment-jsdom]
Makejsdom
accessible to extending environments again (#12232)[jest-jasmine2, jest-types]
[BREAKING] Move alljasmine
specific types from@jest/types
to its own package (#12125)
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.2
(#11142)[*]
Bundle all.d.ts
files into a singleindex.d.ts
per module (#12345)[expect]
[BREAKING] Remove support for importingbuild/utils
(#12323)[expect]
[BREAKING] Migrate to ESM (#12344)[jest-cli]
Updateyargs
to v17 (#12357)[jest-config]
[BREAKING] RemovegetTestEnvironment
export (#12353)[@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/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-snapshot]
[BREAKING] Migrate to ESM (#12342)[jest-transform]
Updatewrite-file-atomic
to v4 (#12357)[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)
New Contributors
- @marcelltoth made their first contribution in #12290
Full Changelog: v27.5.1...v28.0.0-alpha.0
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)
New Contributors
- @zoltan-boros made their first contribution in #12206
Full Changelog: v27.5.0...v27.5.1
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)
New Contributors
- @markjm made their first contribution in #11749
- @benjamingr made their first contribution in #12266
- @aduh95 made their first contribution in #12269
- @piranna made their first contribution in #12272
- @od-c0d3r made their first contribution in #12234
- @davidnormo made their first contribution in #12264
- @mshima made their first contribution in #12277
- @Cambuchi made their first contribution in #12246
- @vladsholokhov made their first contribution in #12185
- @robdy made their first contribution in #12254
- @Michael-M-Judd made their first contribution in #12212
Full Changelog: v27.4.7...v27.5.0
v27.4.7
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)
New Contributors
- @laozhu made their first contribution in #12136
- @sfiquet made their first contribution in #12161
- @SimonSiefke made their first contribution in #12002
- @Semigradsky made their first contribution in #12190
- @cmpadden made their first contribution in #12204
- @LitoMore made their first contribution in #12211
Full Changelog: v27.4.5...v27.4.6
v27.4.5
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
New Contributors
- @aghArdeshir made their first contribution in #12109
- @ony3000 made their first contribution in #12127
- @liesislukas made their first contribution in #12135
- @nicolo-ribaudo made their first contribution in #12128
Full Changelog: v27.4.3...v27.4.4