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

Function isWatchmanInstalled

packages/jest-haste-map/src/lib/isWatchmanInstalled.ts:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import {promisify} from 'node:util';
10
11export default async function isWatchmanInstalled(): Promise<boolean> {
12 try {
13 await promisify(execFile)('watchman', ['--version']);
14 return true;
15 } catch {
16 return false;
17 }
18}

Callers 2

_shouldUseWatchmanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected