(report, manifest)
| 217 | } |
| 218 | |
| 219 | function printReport(report, manifest) { |
| 220 | console.log(`items: ${manifest.length}`); |
| 221 | console.log(`added: ${report.added.length}, changed: ${report.changed.length}, removed: ${report.removed.length}`); |
| 222 | if (report.added.length) console.log(`added items:\n${report.added.map((item) => ` - ${itemLabel(item)}`).join("\n")}`); |
| 223 | if (report.changed.length) console.log(`changed items:\n${report.changed.map((item) => ` - ${itemLabel(item)}`).join("\n")}`); |
| 224 | if (report.removed.length) console.log(`removed items:\n${report.removed.map((item) => ` - ${itemLabel(item)}`).join("\n")}`); |
| 225 | } |
| 226 | |
| 227 | function syncLogHeader() { |
| 228 | return `# 同步记录 |
no test coverage detected