MCPcopy
hub / github.com/jestjs/jest / mockName

Method mockName

packages/jest-mock/src/index.ts:150–150  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

148 withImplementation(fn: T, callback: () => Promise<unknown>): Promise<void>;
149 withImplementation(fn: T, callback: () => void): void;
150 mockName(name: string): this;
151 mockReturnThis(): this;
152 mockReturnValue(value: ReturnType<T>): this;
153 mockReturnValueOnce(value: ReturnType<T>): this;

Callers 12

index.test.tsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected