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

Method mockReturnValue

packages/jest-mock/src/index.ts:152–152  ·  view source on GitHub ↗
(value: ReturnType<T>)

Source from the content-addressed store, hash-verified

150 mockName(name: string): this;
151 mockReturnThis(): this;
152 mockReturnValue(value: ReturnType<T>): this;
153 mockReturnValueOnce(value: ReturnType<T>): this;
154 mockResolvedValue(value: ResolveType<T>): this;
155 mockResolvedValueOnce(value: ResolveType<T>): this;

Callers 15

initSearchSourceFunction · 0.80
forcePosixFunction · 0.80
forceWindowsFunction · 0.80
utils.test.tsFile · 0.80
EsmLoader.test.tsFile · 0.80
MockState.test.tsFile · 0.80
CjsLoader.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 4

initSearchSourceFunction · 0.64
forcePosixFunction · 0.64
forceWindowsFunction · 0.64
createTransformerFunction · 0.64