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

Method resetCalls

lib/internal/test_runner/mock/mock.js:160–162  ·  view source on GitHub ↗

* Resets the recorded calls to the mock function

()

Source from the content-addressed store, hash-verified

158 * Resets the recorded calls to the mock function
159 */
160 resetCalls() {
161 this.#calls = [];
162 }
163
164 /**
165 * Tracks a call made to the mock function.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected