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

Function resolveRunner

packages/jest-resolve/src/utils.ts:162–181  ·  view source on GitHub ↗
(
  resolver: string | undefined | null,
  {
    filePath,
    rootDir,
    requireResolveFunction,
  }: {
    filePath: string;
    rootDir: string;
    requireResolveFunction: (moduleName: string) => string;
  },
)

Source from the content-addressed store, hash-verified

160 * 1. looks for <name> relative to Jest.
161 */
162export const resolveRunner = (
163 resolver: string | undefined | null,
164 {
165 filePath,
166 rootDir,
167 requireResolveFunction,
168 }: {
169 filePath: string;
170 rootDir: string;
171 requireResolveFunction: (moduleName: string) => string;
172 },
173): string =>
174 resolveWithPrefix(resolver, {
175 filePath,
176 humanOptionName: 'Jest Runner',
177 optionName: 'runner',
178 prefix: 'jest-runner-',
179 requireResolveFunction,
180 rootDir,
181 });
182
183export const resolveSequencer = (
184 resolver: string | undefined | null,

Callers 1

normalizeFunction · 0.90

Calls 1

resolveWithPrefixFunction · 0.85

Tested by

no test coverage detected