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

Method close

packages/jest-haste-map/src/watchers/FSEventsWatcher.ts:131–137  ·  view source on GitHub ↗

* End watching.

(callback?: () => void)

Source from the content-addressed store, hash-verified

129 * End watching.
130 */
131 async close(callback?: () => void): Promise<void> {
132 await this.fsEventsWatchStopper();
133 this.removeAllListeners();
134 if (typeof callback === 'function') {
135 process.nextTick(() => callback());
136 }
137 }
138
139 private isFileIncluded(relativePath: string) {
140 if (this.doIgnore(relativePath)) {

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected