Ffn
Bun

function

test.jest.fn

function fn<T extends (...args: any[]) => any>(
func?: T
): Mock<T>;

Referenced types

type Mock<T extends (...args: any[]) => any = (...args: any[]) => any> = JestMock.Mock<T>

Constructs the type of a mock function, e.g. the return type of jest.fn().