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

Function reportsDiffToFileContent

packages/core/src/lib/compare.ts:122–132  ·  view source on GitHub ↗
(
  reportsDiff: ReportsDiff,
  format: Format,
)

Source from the content-addressed store, hash-verified

120}
121
122function reportsDiffToFileContent(
123 reportsDiff: ReportsDiff,
124 format: Format,
125): string {
126 switch (format) {
127 case 'json':
128 return JSON.stringify(reportsDiff, null, 2);
129 case 'md':
130 return generateMdReportsDiff(reportsDiff);
131 }
132}
133
134async function fetchPortalComparisonLink(
135 uploadConfig: UploadConfig,

Callers 1

compareReportFilesFunction · 0.85

Calls 1

generateMdReportsDiffFunction · 0.90

Tested by

no test coverage detected