npm jest 30.0.0-alpha.6
v30.0.0-alpha.6

2 months ago

Features

  • [babel-jest] Add option excludeJestPreset to allow opting out of babel-preset-jest (#15164)
  • [jest-circus, jest-test-result] Add startedAt timestamp in TestCaseResultObject within onTestCaseResult (#15145)
  • [jest-config] Show rootDir in error message when a preset fails to load (#15194)
  • [jest-config] Support loading TS config files using esbuild-register via docblock loader (#15190)
  • [jest-config] allow passing TS config loader options via docblock comment (#15234)
  • [expect, @jest/expect] [BREAKING] Add type inference for function parameters in CalledWith assertions (#15129)
  • [@jest/expect-utils] Properly compare all types of TypedArrays (#15178)
  • [jest-resolver] Support file:// URLs as paths (#15154)
  • [jest-runtime] Add unstable_unmockModule (#15080)
  • [expect] Use Array.isArray to check if an array is an Array (#15101)
  • [@jest/create-cache-key-function] Correct the return type of createCacheKey (#15159)
  • [pretty-format] Fixed a bug where "anonymous custom elements" were not being printed as expected. (#15138)
  • [jest-worker] Properly handle a circular reference error when worker tries to send an assertion fails where either the expected or actual value is circular (#15191)
  • [jest-worker] Properly handle a BigInt when worker tries to send an assertion fails where either the expected or actual value is BigInt (#15191)

Performance

  • [jest-runner] Better cleanup source-map-support after test to resolve (minor) memory leak (#15233)

Chore & Maintenance

  • [*] [BREAKING] Drop support for Node.js versions 14, 19 and 21 (#14460, #15118)
  • [babel-jest, @jest/transform] Update babel-plugin-istanbul to v6 (#15156)
  • [babel-plugin-jest-hoist] Move unnecessary dependencies to devDependencies (#15010)

New Contributors

Full Changelog: v30.0.0-alpha.5...v30.0.0-alpha.6

Don't miss a new jest release

NewReleases is sending notifications on new releases.