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

Function worker

packages/jest-reporters/src/CoverageWorker.ts:44–59  ·  view source on GitHub ↗
({
  config,
  globalConfig,
  path,
  context,
}: CoverageWorkerData)

Source from the content-addressed store, hash-verified

42});
43
44export function worker({
45 config,
46 globalConfig,
47 path,
48 context,
49}: CoverageWorkerData): Promise<CoverageWorkerResult | null> {
50 return generateEmptyCoverage(
51 fs.readFileSync(path, 'utf8'),
52 path,
53 globalConfig,
54 config,
55 context.changedFiles && new Set(context.changedFiles),
56 context.sourcesRelatedToTestsInChangedFiles &&
57 new Set(context.sourcesRelatedToTestsInChangedFiles),
58 );
59}

Callers 1

Calls 1

generateEmptyCoverageFunction · 0.85

Tested by

no test coverage detected