( reportsDiff: ReportsDiff, format: Format, )
| 120 | } |
| 121 | |
| 122 | function 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 | |
| 134 | async function fetchPortalComparisonLink( |
| 135 | uploadConfig: UploadConfig, |
no test coverage detected