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

Method _shouldUseWatchman

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

Source from the content-addressed store, hash-verified

1106 }
1107
1108 private async _shouldUseWatchman(): Promise<boolean> {
1109 if (!this._options.useWatchman) {
1110 return false;
1111 }
1112 if (!isWatchmanInstalledPromise) {
1113 isWatchmanInstalledPromise = isWatchmanInstalled();
1114 }
1115 return isWatchmanInstalledPromise;
1116 }
1117
1118 private _createEmptyMap(): InternalHasteMap {
1119 return {

Callers 2

_crawlMethod · 0.95
_watchMethod · 0.95

Calls 1

isWatchmanInstalledFunction · 0.85

Tested by

no test coverage detected