v28.0.0-alpha.5
Pre-release
Pre-release
Features
[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-config]
[BREAKING] RenamemoduleLoader
toruntime
(#10817)[jest-config]
[BREAKING] RenameextraGlobals
tosandboxInjectedGlobals
(#10817)[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] Pass global config to Jest environment constructor fornode
environment (#12461)[jest-environment-node]
[BREAKING] Second argumentcontext
to constructor is mandatory (#12469)[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 typesConstructorLike
,MethodLike
,ConstructorLikeKeys
,MethodLikeKeys
,PropertyLikeKeys
; remove exports of utility typesArgumentsOf
,ArgsType
,ConstructorArgumentsOf
- TS builtin utility typesConstructorParameters
andParameters
should be used instead (#12435)[jest-mock]
Add support for auto-mocking async generator functions (#11080)[jest-runner]
Allow passingtestEnvironmentOptions
via docblocks (#12470)[jest-runtime]
[BREAKING]Runtime.createHasteMap
now returns a promise (#12008)
Fixes
[expect]
Throw useful error ifexpect.extend
is called with invalid matchers (#12488)[expect]
FixiterableEquality
ignores other properties (#8359)[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-environment-jsdom]
Log JSDOM errors more cleanly (#12386)[@jest/expect-utils]
[BREAKING] Fix false positives when looking forundefined
prop (#8923)
New Contributors
- @cjr125 made their first contribution in #11084
- @davidjgoss made their first contribution in #11566
- @SixTfour made their first contribution in #8923
- @aditya04848 made their first contribution in #12385
- @rick-shar-ww made their first contribution in #8333
- @shooit made their first contribution in #11080
- @d7my11 made their first contribution in #8359
Full Changelog: v28.0.0-alpha.4...v28.0.0-alpha.5