Packages

@jest/fake-timers

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

Your version

24.3.0

7 Mar 2019Where it was published

24.9.0 is the newest release of 24.x.

In short

1 removed1 security14 new1 faster16 fixed18 internal

  • removed

    expect: Remove duck typing and obsolete browser support code when comparing DOM nodes and use DOM-Level-3 API instead

  • security

    jest-cli: Fix prototype pollution vulnerability in dependency

Release note

We skipped 24.2.0 because a draft was accidentally published. Please use 24.3.0 or a newer version instead.

Features

  • : Improve report when matcher fails, part 10

  • : Improve report when matcher fails, part 11

  • : Improve report when matcher fails, part 12

  • : Improve report when matcher fails, part 7

  • : Improve report when matcher fails, part 8

  • : Improve report when matcher fails, part 9

  • jest-circus/jest-jasmine2: Warn if describe returns a value

  • jest-config: Print error information on preset normalization error

  • jest-get-type: Add isPrimitive function

  • jest-haste-map: Add skipPackageJson option

  • jest-util: Add isPromise

  • pretty-format: Support React.memo

Fixes

  • expect: Fix toStrictEqual not considering arrays with objects having undefined values correctly

  • expect: Fix custom async matcher stack trace

  • expect: Fix non-object received value in toHaveProperty (#7986, #8067)

  • expect: Fix non-symmetric equal for Number

  • removed

    expect: Remove duck typing and obsolete browser support code when comparing DOM nodes and use DOM-Level-3 API instead

  • jest-changed-files: Fix getChangedFilesFromRoots to not return parts of the commit messages as if they were files, when the commit messages contained multiple paragraphs

  • jest-changed-files: Fix pattern for HG changed files

  • jest-changed-files: Improve default file selection for Mercurial repos

  • jest-circus: Fix bug with test.only

  • : Throw explicit error when errors happen after test is considered complete

  • security

    jest-cli: Fix prototype pollution vulnerability in dependency

  • jest-cli: Refactor -o and --coverage combined

  • jest-environment-node: Add missing globals: TextEncoder and TextDecoder

  • jest-haste-map: Enforce uniqueness in names (mocks and haste ids)

  • : Throw explicit error when errors happen after test is considered complete

  • jest-mock: Adds a type check to prototype to allow mocks of objects with a primitive prototype property.

  • jest-transform: Normalize config and remove unnecessary checks, convert TestUtils.js to TypeScript

  • Make sure to not fail if unable to assign toStringTag to the process object, which is read only in Node 12

  • jest-validate: Fix validating async functions

  • jest-worker: Fix jest-worker when using pre-allocated jobs

  • static: Remove console log '-' on the front page

Performance

  • jest-haste-map: Optimize haste map tracking of deleted files with Watchman.