Skip to content
masterclass Buddy

Jest · Method

jest.mocked

jest.mocked() gives an object or function Jest mock types in TypeScript. It supports deep nested members by default.

Last updated

Syntax

jest.mocked(source, options?)

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

Subscribe
  • jest.Mocked<Source>
  • jest.Spied<Source>
  • jest.mock()
  • jest.spyOn()
  • jest.fn()

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