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

Method toHaveBeenCalledTimes

packages/expect/src/types.ts:233–233  ·  view source on GitHub ↗

* Ensures that a mock function is called an exact number of times.

(expected: number)

Source from the content-addressed store, hash-verified

231 * Ensures that a mock function is called an exact number of times.
232 */
233 toHaveBeenCalledTimes(expected: number): R;
234 /**
235 * Ensure that a mock function is called with specific arguments.
236 */

Calls

no outgoing calls

Tested by 3

assertCallsToChildFunction · 0.64
assertCallsToChildFunction · 0.64
defineTestsFunction · 0.64