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

Method end

packages/jest-haste-map/src/index.ts:1078–1090  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1076 }
1077
1078 async end(): Promise<void> {
1079 if (this._changeInterval) {
1080 clearInterval(this._changeInterval);
1081 }
1082
1083 if (this._watchers.length === 0) {
1084 return;
1085 }
1086
1087 await Promise.all(this._watchers.map(watcher => watcher.close()));
1088
1089 this._watchers = [];
1090 }
1091
1092 /**
1093 * Helpers

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected