({
config,
globalConfig,
path,
context,
}: CoverageWorkerData)
| 42 | }); |
| 43 | |
| 44 | export 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 | } |
no test coverage detected