Features [create-jest] Add npm init / yarn create initialiser for Jest projects (#14465) [jest-validate] Allow deprecation warnings for unknown options (#14499) Fixes [jest-resolver] Replace unmatched capture groups in moduleNameMapper with
Jest 28 to 29
Every Jest 29.x release the archive holds, 23 of them, starting at 29.0.0 and running to 29.7.0. The publisher writes these one at a time and its documentation describes the version you are on, so the run between two majors is not laid out anywhere as a list.
- Releases
- 2323 carry notes
- Opened
- 25 Aug 20224 years ago
- Span
- 13 monthsto 12 Sep 2023
- Breaking
- 2tagged by the publisher
The turn
Tagged breaking
Every 29.x release
All Jest releasesFixes [jest-core] Fix typo in scheduleAndRun performance marker (#14434) [jest-environment-node] Make sure atob and btoa are writeable in Node 20 (#14446) [jest-worker] Additional error wrapper for parentPort.postMessage to fix unhandled Da
Fixes [expect, @jest/expect-utils] ObjectContaining support symbol as key (#14414) [expect] Remove @types/node from dependencies (#14385) [jest-core] Use workers in watch mode by default to avoid crashes (#14059 & #14085). [jest-reporters]
Fixes [jest-circus] Fix snapshot matchers in concurrent tests when nr of tests exceeds maxConcurrency (#14335) [@jest/core] When running global setup and teardown, do not try to change the message property of the thrown error object when th
Fixes [jest-circus] Revert #14110 as it was a breaking change (#14304)
Features [jest-circus, jest-snapshot] Add support for snapshot matchers in concurrent tests (#14139) [jest-cli] Include type definitions to generated config files (#14078) [jest-snapshot] Support arrays as property matchers (#14025) [jest-c
Features [jest-changed-files] Support Sapling (#13941) [jest-circus, @jest/cli, jest-config] Add feature to randomize order of tests via CLI flag or through the config file(#12922) [jest-cli, jest-config, @jest/core, jest-haste-map, @jest/r
Features [expect] Update toThrow() to be able to use error causes (#13606) [jest-core] allow to use workerIdleMemoryLimit with only 1 worker or runInBand option (#13846) [jest-message-util] Add support for error causes (#13868 & #13912) [je
Features [@jest/core] Instrument significant lifecycle events with performance.mark() (#13859) Fixes [expect, @jest/expect] Provide type of actual as a generic argument to Matchers to allow better-typed extensions (#13848) [jest-circus] Add
Features [expect, jest-circus, @jest/types] Implement numPassingAsserts of testResults to track the number of passing asserts in a test (#13795) [jest-core] Add newlines to JSON output (#13817) [@jest/reporters] Automatic log folding in Git
Features [expect, @jest/expect-utils] Support custom equality testers (#13654) [jest-config, jest-worker] Use os.availableParallelism if available to calculate number of workers to spawn (#13738) [@jest/globals, jest-mock] Add jest.replaceP
Fixes [jest-config] Do not warn about preset in ProjectConfig (#13583) Performance [jest-transform] Defer creation of cache directory (#13420)
Features [jest-runtime] Support WebAssembly (Wasm) imports in ESM modules (#13505) Fixes [jest-config] Add config validation for projects option (#13565) [jest-mock] Treat cjs modules as objects so they can be mocked (#13513) [jest-worker]
Fixes [@jest/test-sequencer] Make sure sharding does not produce empty groups (#13476) [jest-circus] Test marked as todo are shown as todo when inside a focussed describe (#13504) [jest-mock] Ensure mock resolved and rejected values are pro
Features [@jest/globals, jest-mock] Add jest.Spied* utility types (#13440) Fixes [jest-environment-node] make globalThis.performance writable for Node 19 and fake timers (#13467) [jest-mock] Revert #13398 to restore mocking of setters (#134
Features [@jest/cli, jest-config] A seed for the test run will be randomly generated, or set by a CLI option (#13400) [@jest/cli, jest-config] --show-seed will display the seed value in the report, and can be set via a CLI flag or through t
Fixes [expect, @jest/expect] Revert buggy inference of argument types for *CalledWith and *ReturnedWith matchers introduced in 29.1.0 (#13339) [jest-worker] Add missing dependency on jest-util (#13341)
Fixes [jest-mock] Revert #13145 which broke mocking of transpiled ES modules
Features [expect, @jest/expect] support type inference for function parameters in CalledWith assertions (#13268) [expect, @jest/expect] Infer type of *ReturnedWith matchers argument (#13278) [@jest/environment, jest-runtime] Allow jest.requ
Features [@jest/environment, jest-runtime] Allow passing a generic type argument to jest.createMockFromModule<T>() method (#13202) [expect] Expose ExpectationResult type (#13240) [jest-snapshot] Expose Context type (#13240) [@jest/globals]
Features [jest-transform] Expose TransformFactory type (#13184) Fixes [babel-plugin-jest-hoist] Support imported jest in mock factory (#13188) [jest-mock] Align the behavior and return type of generateFromMetadata method (#13207) [jest-runt
Fixes [jest-snapshot] Pass snapshotFormat through when diffing snapshots (#13181)
Blog post: https://jestjs.io/blog/2022/08/25/jest-29 Features [expect] [BREAKING] Differentiate between MatcherContext MatcherUtils and MatcherState types (#13141) [jest-circus] Add support for test.failing.each (#13142) [jest-config] [BREA