MCPcopy Create free account
hub / github.com/npm/cli / reset

Method reset

mock-globals/lib/index.js:140–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 }
139
140 reset () {
141 // Everything could be reset manually so only
142 // teardown if we have an initial descriptor left
143 // and then delete the rest of the stack
144 if (this.#stack.length) {
145 this[_setGlobal](this.#stack[0])
146 this.#stack.length = 0
147 }
148 }
149
150 [_setGlobal] (d) {
151 if (this.#isDelete(d)) {

Callers 4

warnStringMethod · 0.45
logOptionsMethod · 0.45
humanOutputFunction · 0.45
teardownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected