MCPcopy Create free account
hub / github.com/code-pushup/cli / addLcovReporter

Function addLcovReporter

packages/plugin-coverage/src/lib/config-file.ts:19–28  ·  view source on GitHub ↗
(content: string, framework: string)

Source from the content-addressed store, hash-verified

17}
18
19export function addLcovReporter(content: string, framework: string): string {
20 switch (framework) {
21 case 'vitest':
22 return addLcovToVitest(content);
23 case 'jest':
24 return addLcovToJest(content);
25 default:
26 return content;
27 }
28}
29
30function addLcovToVitest(content: string): string {
31 try {

Callers 2

configureLcovReporterFunction · 0.85

Calls 2

addLcovToVitestFunction · 0.85
addLcovToJestFunction · 0.85

Tested by

no test coverage detected