MCPcopy Index your code
hub / github.com/nodejs/node / callCount

Method callCount

lib/internal/test_runner/mock/mock.js:115–117  ·  view source on GitHub ↗

* Retrieves the number of times the mock function has been called. * @returns {number} The call count.

()

Source from the content-addressed store, hash-verified

113 * @returns {number} The call count.
114 */
115 callCount() {
116 return this.#calls.length;
117 }
118
119 /**
120 * Sets a new implementation for the mock function.

Calls

no outgoing calls

Tested by

no test coverage detected