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

Method mockImplementationOnce

packages/jest-mock/src/index.ts:147–147  ·  view source on GitHub ↗
(fn: T)

Source from the content-addressed store, hash-verified

145 mockRestore(): void;
146 mockImplementation(fn: T): this;
147 mockImplementationOnce(fn: T): this;
148 withImplementation(fn: T, callback: () => Promise<unknown>): Promise<void>;
149 withImplementation(fn: T, callback: () => void): void;
150 mockName(name: string): this;

Callers 10

node.test.jsFile · 0.80
_makeComponentMethod · 0.80
index.test.tsFile · 0.80
messages.test.tsFile · 0.80
calc.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected