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

Method close

packages/jest-haste-map/src/watchers/NodeWatcher.js:194–199  ·  view source on GitHub ↗

* End watching. * * @public

()

Source from the content-addressed store, hash-verified

192 */
193
194 close() {
195 for (const key of Object.keys(this.watched)) this.stopWatching(key);
196 this.removeAllListeners();
197
198 return Promise.resolve();
199 }
200
201 /**
202 * On some platforms, as pointed out on the fs docs (most likely just win32)

Callers 5

endMethod · 0.45
stopWatchingMethod · 0.45
teardownFunction · 0.45
recently-closed.jsFile · 0.45

Calls 2

stopWatchingMethod · 0.95
resolveMethod · 0.45

Tested by

no test coverage detected