Skip to content
masterclass Buddy

Jest · Type Alias

MockedFunction

Jest mock functions replace real implementations during tests. They record calls, arguments, constructor instances, and configured return values.

Last updated

Syntax

jest.fn(implementation?)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • jest.fn()
  • manual mock
  • mock.calls
  • constructor functions

Source: Mock Functions. Checked 2026-11-03.