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.
SubscribeRelated
jest.MockedClass<Source>jest.MockedFunction<Source>jest.MockedObject<Source>jest.mocked(source, options?)jest.fn()