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

Function addDependency

packages/jest-haste-map/src/lib/dependencyExtractor.ts:77–80  ·  view source on GitHub ↗
(match: string, _: string, dep: string)

Source from the content-addressed store, hash-verified

75 const dependencies = new Set<string>();
76
77 const addDependency = (match: string, _: string, dep: string) => {
78 dependencies.add(dep);
79 return match;
80 };
81
82 code
83 .replaceAll(BLOCK_COMMENT_RE, '')

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected