ITADN
jestjs/jest

版本发布 8

30.1.2v30.1.2
? · 2025-09-03

### Fixes - `[jest-snapshot-utils]` Correct snapshot header regexp to work with newline across OSes ([#15803](https://github.com/jestjs/jest/pull/15803))

30.1.1v30.1.1
? · 2025-08-27

### Fixes - `[jest-snapshot-utils]` Fix deprecated goo.gl snapshot warning not handling Windows end-of-line sequences ([#15800](https://github.com/jestjs/jest/pull/15800))

30.1.0v30.1.0
? · 2025-08-27

## Features - `[jest-leak-detector]` Configurable GC aggressiveness regarding to V8 heap snapshot generation ([#15793](https://github.com/jestjs/jest/pull/15793/)) - `[jest-runtime]` Reduce redundant ReferenceError messages - `[jest-core]` Include test modules that failed to load when --onlyFailures is active ### Fixes - `[jest-snapshot-utils] Fix deprecated goo.gl snapshot guide link not getting replaced with fully canonical URL ([#15787](https://github.com/jestjs/jest/pull/15787)) - `[jest-circus]` Fix `it.concurrent` not working with `describe.skip` ([#15765](https://github.com/jestjs/jest/pull/15765)) - `[jest-snapshot]` Fix mangled inline snapshot updates when used with Prettier 3 and CRLF line endings - `[jest-runtime]` Importing from `@jest/globals` in more than one file no longer breaks relative paths ([#15772](https://github.com/jestjs/jest/issues/15772)) # Chore - `[expect]` Update docblock for `toContain()` to display info on substring check ([#15789](https://github.com/jestjs/jest/pull/15789))

30.0.2v30.0.2
? · 2025-06-19

## What's Changed ### Fixes - `[jest-matcher-utils]` Make 'deepCyclicCopyObject' safer by setting descriptors to a null-prototype object ([#15689](https://github.com/jestjs/jest/pull/15689)) - `[jest-util]` Make garbage collection protection property writable ([#15689](https://github.com/jestjs/jest/pull/15689)) **Full Changelog**: https://github.com/jestjs/jest/blob/main/CHANGELOG.md

Jest 30.0.1v30.0.1
? · 2025-06-18

## What's Changed ### Features - `[jest-resolver]` Implement the `defaultAsyncResolver` ([#15679](https://github.com/jestjs/jest/pull/15679)) ### Fixes - `[jest-resolver]` Resolve builtin modules correctly ([#15683](https://github.com/jestjs/jest/pull/15683)) - `[jest-environment-node, jest-util]` Avoid setting globals cleanup protection symbol when feature is off ([#15684](https://github.com/jestjs/jest/pull/15684)) ### Chore & Maintenance - `[*]` Remove and deprecate `jest-repl` package ([#15673](https://github.com/jestjs/jest/pull/15673)) - `[jest-resolver]` Replace custom `isBuiltinModule` with node's `isBuiltin` ([#15685](https://github.com/jestjs/jest/pull/15685)) ## New Contributors * @vovkasm made their first contribution in https://github.com/jestjs/jest/pull/15687 **Full Changelog**: https://github.com/jestjs/jest/blob/main/CHANGELOG.md

v30.0.0-beta.4预发布
? · 2025-05-27

## What's Changed * feat(runtime): use `compileFunction` over `new Script` by @SimenB in https://github.com/jestjs/jest/pull/15461 **Full Changelog**: https://github.com/jestjs/jest/compare/v30.0.0-beta.3...v30.0.0-beta.4

v30.0.0-beta.3预发布
? · 2025-05-27

Jest 30 is shipping soon. Please help us test the beta and open issues and Pull Requests if you run into any issues. ### Major changes & improvements * chore!: drop support for node.js version 16. by @MillerSvt in https://github.com/jestjs/jest/pull/15623 * chore: update jsdom to v26.0.0 by @andreibereczki in https://github.com/jestjs/jest/pull/15473 * Mitigate memory leaks in jest-environment-node by @eyalroth in https://github.com/jestjs/jest/pull/15215 ### Fixes * fix: pass resolve conditions when loading stub module by @andrew-the-drawer in https://github.com/jestjs/jest/pull/15489 * fix: refactor _importCoreModule so required core module is consistent by @jonasongg in https://github.com/jestjs/jest/pull/15517 * fix: error cause bug by @BondarenkoAlex in https://github.com/jestjs/jest/pull/15339 * fix: ignore Window object in deepCyclicCopyReplaceable by @MillerSvt in https://github.com/jestjs/jest/pull/15590 * fix(jest-haste-map): Fix clobbering/errors when multiple configs use different haste impls by @robhogan in https://github.com/jestjs/jest/pull/15522 * fix: print `AggregateError` to display by @BondarenkoAlex in https://github.com/jestjs/jest/pull/15346 * Prevent EPERM windows transform issue from failing tests by @lukeapage in https://github.com/jestjs/jest/pull/11104 * fix(objectContaining): Fixed a bug where ObjectContaining matched with non-object values. by @mohammednumaan in https://github.com/jestjs/jest/pull/15463 * Fix calledWith(objectContaining) when there are multiple calls by @ecraig12345 in https://github.com/jestjs/jest/pull/15508 * feat(expect): add ArrayOf asymmetric matcher by @icholy in https://github.com/jestjs/jest/pull/15567 * fix: jest-circus shares events among imports #11483 by @satanTime in https://github.com/jestjs/jest/pull/11529 * fix: worker state by @phawxby in https://github.com/jestjs/jest/pull/15610 ## New Contributors * @andrew-the-drawer made their first contribution in https://github.com/jestjs/jest/pull/15489 * @jonasongg made their first contribution in https://github.com/jestjs/jest/pull/15517 * @danielrentz made their first contribution in https://github.com/jestjs/jest/pull/15514 * @co63oc made their first contribution in https://github.com/jestjs/jest/pull/15527 * @thypon made their first contribution in https://github.com/jestjs/jest/pull/15559 * @pengqiseven made their first contribution in https://github.com/jestjs/jest/pull/15602 * @anbnyc made their first contribution in https://github.com/jestjs/jest/pull/15521 * @tez3998 made their first contribution in https://github.com/jestjs/jest/pull/15359 * @dev-intj made their first contribution in https://github.com/jestjs/jest/pull/15605 * @zakingslayerv22 made their first contribution in https://github.com/jestjs/jest/pull/15583 * @loganrosen made their first contribution in https://github.com/jestjs/jest/pull/15498 * @dancer1325 made their first contribution in https://github.com/jestjs/jest/pull/15486 * @sebastiancarlos made their first contribution in https://github.com/jestjs/jest/pull/15372 * @cgm-16 made their first contribution in https://github.com/jestjs/jest/pull/15551 * @ecraig12345 made their first contribution in https://github.com/jestjs/jest/pull/15508 * @icholy made their first contribution in https://github.com/jestjs/jest/pull/15567 * @satanTime made their first contribution in https://github.com/jestjs/jest/pull/11529 * @JounQin made their first contribution in https://github.com/jestjs/jest/pull/15617 * @Dreamsorcerer made their first contribution in https://github.com/jestjs/jest/pull/15622 * @andreibereczki made their first contribution in https://github.com/jestjs/jest/pull/15473 **Full Changelog**: https://github.com/jestjs/jest/blob/main/CHANGELOG.md

v30.0.0-alpha.7预发布
? · 2025-01-30

## Features - `[jest-cli]` Export `buildArgv` ([#15310](https://github.com/facebook/jest/pull/15310)) - `[jest-config]` If Node is running with type stripping enabled, do not require a TS loader ([#15480](https://github.com/jestjs/jest/pull/15480)) - `[@jest/core]` Stringify Errors properly with `--json` flag ([#15329](https://github.com/jestjs/jest/pull/15329)) - `[@jest/fake-timers]` [**BREAKING**] Upgrade `@sinonjs/fake-timers` to v13 ([#14544](https://github.com/jestjs/jest/pull/14544) & [#15470](https://github.com/jestjs/jest/pull/15470)) - `[jest-runtime]` Add `onGenerateMock` transformer callback for auto generated callbacks ([#15433](https://github.com/jestjs/jest/pull/15433)) - `[@jest/schemas]` Upgrade `@sinclair/typebox` to v0.34 ([#15450](https://github.com/jestjs/jest/pull/15450)) ## Fixes - `[*]` Replace `exit` with `exit-x` ([#15399](https://github.com/jestjs/jest/pull/15399)) - `[babel-plugin-jest-hoist]` Do not rely on buggy Babel behaviour ([#15415](https://github.com/jestjs/jest/pull/15415)) - `[jest-circus]` Concurrent tests now emit jest circus events at the correct point and in the expected order. ([#15381](https://github.com/jestjs/jest/pull/15381)) - `[jest-schemas, jest-types]` [**BREAKING**] Fix type of `testFailureExitCode` config option([#15232](https://github.com/jestjs/jest/pull/15232)) - `[jest-util]` Always load `mjs` files with `import` ([#15447](https://github.com/jestjs/jest/pull/15447)) ## New Contributors * @brandonnorsworthy made their first contribution in https://github.com/jestjs/jest/pull/15270 * @jzaefferer made their first contribution in https://github.com/jestjs/jest/pull/15266 * @ZuBB made their first contribution in https://github.com/jestjs/jest/pull/15328 * @ikonst made their first contribution in https://github.com/jestjs/jest/pull/15315 * @gagan-bhullar-tech made their first contribution in https://github.com/jestjs/jest/pull/15311 * @jayvdb made their first contribution in https://github.com/jestjs/jest/pull/15422 * @dongwa made their first contribution in https://github.com/jestjs/jest/pull/15310 * @MillerSvt made their first contribution in https://github.com/jestjs/jest/pull/15433 * @mohammednumaan made their first contribution in https://github.com/jestjs/jest/pull/15437 * @madcapnmckay made their first contribution in https://github.com/jestjs/jest/pull/15381 * @tonyd33 made their first contribution in https://github.com/jestjs/jest/pull/15329 * @hyperupcall made their first contribution in https://github.com/jestjs/jest/pull/15426 **Full Changelog**: https://github.com/jestjs/jest/compare/v30.0.0-alpha.6...v30.0.0-alpha.7