v30.0.0-alpha.3
Pre-release
Pre-release
Features
[jest-circus]Add awaitBeforeRetryoption tojest.retryTimes(#14738)[jest-circus, jest-jasmine2]AllowsetupFilesAfterEnvto export an async function (#10962)[jest-config]Loads config file from provided path inpackage.json(#14044)[jest-config]Allow loadingjest.config.ctsfiles (#14070)[@jest/core]Group together open handles with the same stack trace (#13417, & #14789)[@jest/core][BREAKING] Changed--filterto accept an object with shape{ filtered: Array<string> }to match documentation (#13319)[@jest/environment-jsdom-abstract]Introduce new package which abstracts over thejsdomenvironment, allowing usage of custom versions of JSDOM (#14717)[jest-environment-node]Update jest environment with dispose symbolsSymbol(#14888 & #14909)[jest-mock]Add support for the Explicit Resource Management proposal to use theusingkeyword withjest.spyOn(object, methodName)(#14895)[jest-runtime]Supportimport.meta.filenameandimport.meta.dirname(available from Node 20.11)[jest-circus]Replace recursivemakeTestResultsimplementation with iterative one (#14760)[jest-circus]Omitexpect.hasAssertions()errors if a test already has errors (#14866)[jest-cli][BREAKING] Validate CLI flags that require arguments receives them (#14783)[jest-config]SupporttestTimeoutin project config (#14697)[jest-config]SupportcoverageReportersin project config (#14697)[jest-config]Allowreportersin project config (#14768)[pretty-format][BREAKING] PrintArrayBufferandDataViewcorrectly (#14290)
Performance
[jest-haste-map]Only spawn one process to check forwatchmaninstallation (#14826)
Chore & Maintenance
[*][BREAKING] Upgrade toglob@10(#14509)[*]UseTypeErroroverErrorwhere appropriate (#14799)[jest-schemas]Upgrade@sinclair/typebox(#14775)[docs]Append toNODE_OPTIONS, not overwrite (#14730)[docs]Updated.toHaveBeenCalled()documentation to correctly reflect its functionality (#14842)
New Contributors
- @rafaelrabelos made their first contribution in #14044
- @someone635 made their first contribution in #14730
- @faizanu94 made their first contribution in #14625
- @casey-lentz made their first contribution in #14763
- @WillianAgostini made their first contribution in #14738
- @jeremiah-snee-openx made their first contribution in #14768
- @ginabethrussell made their first contribution in #14747
- @vkml made their first contribution in #14749
- @DerTimonius made their first contribution in #14070
- @JimminiKin made their first contribution in #14830
- @arescrimson made their first contribution in #14847
- @notaphplover made their first contribution in #14888
- @bensternthal made their first contribution in #14904
- @phryneas made their first contribution in #14895
Full Changelog: v30.0.0-alpha.2...v30.0.0-alpha.3