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

Method toHaveBeenCalled

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

* Ensures that a mock function is called.

()

Source from the content-addressed store, hash-verified

227 * Ensures that a mock function is called.
228 */
229 toHaveBeenCalled(): R;
230 /**
231 * Ensures that a mock function is called an exact number of times.
232 */

Calls

no outgoing calls

Tested by 1

testModesFunction · 0.64