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

Function findPackageJson

packages/jest-config/src/resolveConfigPath.ts:130–137  ·  view source on GitHub ↗
(pathToResolve: string)

Source from the content-addressed store, hash-verified

128};
129
130const findPackageJson = (pathToResolve: string) => {
131 const packagePath = path.resolve(pathToResolve, PACKAGE_JSON);
132 if (isFile(packagePath)) {
133 return packagePath;
134 }
135
136 return undefined;
137};
138
139const getPackageJsonJestKey = (
140 packagePath: string,

Callers 1

Calls 2

isFileFunction · 0.70
resolveMethod · 0.45

Tested by

no test coverage detected