Packages

@jest/fake-timers

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

Your version

27.5.0

5 Feb 2022Where it was published

27.5.1 is the newest release of 27.x.

In short

5 new1 faster3 fixed1 internal

Release note

Features

  • expect: Add asymmetric matcher expect.closeTo

  • jest-mock: Added mockFn.mock.lastCall to retrieve last argument

Fixes

  • expect: Add a fix for .toHaveProperty('')

  • jest-each, @jest/globals: Allow passing ReadonlyArray type of a table to describe.each and test.each

  • @jest/globals: Add missing options argument to jest.doMock typing

  • jest-environment-node: Add atob and btoa

  • jest-matcher-utils: Correct diff for expected asymmetric matchers

  • jest-message-util: Fix .getTopFrame() (and toMatchInlineSnapshot()) with mjs files

Performance

  • jest-resolve: Skip error creation on not found stat calls