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.
SubscribeRelated
jest.Mocked<Source>jest.Spied<Source>jest.mock()jest.spyOn()jest.fn()