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

Method stopWatching

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

* Stop watching a directory. * * @param {string} dir * @private

(dir)

Source from the content-addressed store, hash-verified

179 */
180
181 stopWatching(dir) {
182 if (this.watched[dir]) {
183 this.watched[dir].close();
184 delete this.watched[dir];
185 }
186 }
187
188 /**
189 * End watching.

Callers 2

closeMethod · 0.95
processChangeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected