Packages

@jest/fake-timers

30.5.2 · 18 Sep 2026MIT78.4M / weekRepositoryHomepagenpmAtom feed

Your version

29.4.0

24 Jan 2023Where it was published

29.7.0 is the newest release of 29.x.

In short

10 new9 fixed2 internal

Release note

Features

  • expect, @jest/expect-utils: Support custom equality testers

  • jest-config, jest-worker: Use os.availableParallelism if available to calculate number of workers to spawn

  • @jest/globals, jest-mock: Add jest.replaceProperty() that replaces property value

  • jest-haste-map: Ignore Sapling vcs directories (.sl/)

  • jest-resolve: Support subpath imports (#13705, #13723, #13777)

  • jest-runtime: Add jest.isolateModulesAsync for scoped module initialization of asynchronous functions

  • jest-runtime: Add jest.isEnvironmentTornDown function

  • jest-test-result: Added skipped and focused status to FormattedTestResult

  • jest-transform: Support for asynchronous createTransformer

Fixes

  • jest-environment-node: Fix non-configurable globals

  • @jest/expect-utils: toMatchObject should handle Symbol properties

  • jest-mock: Fix mockReset and resetAllMocks undefined return value

  • jest-resolve: Add global paths to require.resolve.paths

  • jest-resolve: Correct node core module detection when using node: specifiers

  • jest-runtime: Support WASM files that import JS resources

  • jest-runtime: Use the scriptTransformer cache in jest-runner

  • jest-runtime: Enforce import assertions when importing JSON in ESM (#12755 & #13805)

  • jest-snapshot: Make sure to import babel outside of the sandbox

  • jest-transform: Ensure the correct configuration is passed to preprocessors specified multiple times in the transform option