Skip to content
masterclass Buddy

Jest · Type Alias

jest.Mocked

jest.Mocked<Source> adds Jest mock types to a class, function, or object type. It lets TypeScript recognize mock methods and properties on mocked members.

Last updated

Syntax

jest.Mocked<Source>

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

Subscribe
  • jest.MockedClass<Source>
  • jest.MockedFunction<Source>
  • jest.MockedObject<Source>
  • jest.mocked(source, options?)
  • jest.fn()

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