Packages

@jest/fake-timers

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

Your version

24.8.0

5 May 2019Where it was published

24.9.0 is the newest release of 24.x.

In short

8 new4 faster12 fixed8 internal

Release note

Features

  • jest-circus: Bind to Circus events via an optional event handler on any custom env

  • expect: Improve report when matcher fails, part 15

  • jest-cli: Update --forceExit and "did not exit for one second" message colors

  • expect: Improve report when matcher fails, part 16

  • jest-runner: Pass docblock pragmas to TestEnvironment constructor

  • expect: Improve report when matcher fails, part 17

  • expect: Improve report when matcher fails, part 18

  • expect: Improve report when matcher fails, part 19

Fixes

  • jest-each: Fix bug with placeholder values

  • jest-snapshot: Inline snapshots: do not indent empty lines

  • @jest/runtime, @jest/transform: Allow custom transforms for JSON dependencies

  • jest-core: Make detectOpenHandles imply runInBand

  • jest-haste-map: Fix the mapper option which was incorrectly ignored

  • jest-jasmine2: Fix describe return value warning being shown if the describe function throws

  • jest-environment-jsdom: Re-declare global prototype of JSDOMEnvironment

  • jest-snapshot: Handle arrays when merging snapshots

  • expect: Extract names of async and generator functions

  • jest-runtime: Fix virtual mocks not being unmockable after previously being mocked

  • jest-transform: Replace special characters in transform cache filenames to support Windows

  • jest-config: Allow exactly one project

Performance

  • jest-runtime: Fix module registry memory leak

  • jest-resolve: Optimize resolve module path

  • jest-resolve: Cache current directory

  • jest-get-type: Simplify checking for primitive