MCPcopy Create free account
hub / github.com/nodejs/node / restoreAll

Method restoreAll

lib/internal/test_runner/mock/mock.js:746–752  ·  view source on GitHub ↗

* Restore all mocks created by this MockTracker instance.

()

Source from the content-addressed store, hash-verified

744 * Restore all mocks created by this MockTracker instance.
745 */
746 restoreAll() {
747 for (let i = 0; i < this.#mocks.length; i++) {
748 const { ctx, restore } = this.#mocks[i];
749
750 FunctionPrototypeCall(restore, ctx);
751 }
752 }
753
754 #setupMock(ctx, fnToMatch) {
755 const mock = new Proxy(fnToMatch, {

Callers 2

resetMethod · 0.95
test-fetch-mock.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected