Features
[jest-circus, jest-jasmine2]Allowed classes and functions asdescribeandit/testnames (#12484)[jest-cli, jest-config][BREAKING] RemovetestURLconfig, usetestEnvironmentOptions.urlinstead (#10797)[jest-config][BREAKING] RenamemoduleLoadertoruntime(#10817)[jest-config][BREAKING] RenameextraGlobalstosandboxInjectedGlobals(#10817)[jest-environment-jsdom][BREAKING] Pass global config to Jest environment constructor forjsdomenvironment (#12461)[jest-environment-jsdom][BREAKING] Second argumentcontextto constructor is mandatory (#12469)[jest-environment-node][BREAKING] Pass global config to Jest environment constructor fornodeenvironment (#12461)[jest-environment-node][BREAKING] Second argumentcontextto constructor is mandatory (#12469)[jest-haste-map][BREAKING]HasteMap.createnow returns a promise (#12008)[jest-haste-map]Add support fordependencyExtractorwritten in ESM (#12008)[jest-mock][BREAKING] Rename exported utility typesConstructorLike,MethodLike,ConstructorLikeKeys,MethodLikeKeys,PropertyLikeKeys; remove exports of utility typesArgumentsOf,ArgsType,ConstructorArgumentsOf- TS builtin utility typesConstructorParametersandParametersshould be used instead (#12435)[jest-mock]Add support for auto-mocking async generator functions (#11080)[jest-runner]Allow passingtestEnvironmentOptionsvia docblocks (#12470)[jest-runtime][BREAKING]Runtime.createHasteMapnow returns a promise (#12008)
Fixes
[expect]Throw useful error ifexpect.extendis called with invalid matchers (#12488)[expect]FixiterableEqualityignores other properties (#8359)[jest-config, jest-haste-map]Allow searching for tests innode_modulesby exposingretainAllFiles(#11084)[jest-core][BREAKING] Exit with status1if no tests are found with--findRelatedTestsflag (#12487)[jest-environment-jsdom]Log JSDOM errors more cleanly (#12386)[@jest/expect-utils][BREAKING] Fix false positives when looking forundefinedprop (#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