(projectRoot, report)
| 305 | const base = branch ? safeName(branch) : safeName(path.basename(worktreePath)); |
| 306 | return path.join(dir, `${base}.json`); |
| 307 | } |
| 308 | |
| 309 | function writeReadinessReport(projectRoot, report) { |
| 310 | const target = readinessFile(projectRoot, report.worktreePath, report.branch); |
| 311 | fs.mkdirSync(path.dirname(target), { recursive: true }); |
| 312 | fs.writeFileSync(target, `${JSON.stringify(report, null, 2)}\n`, 'utf8'); |
| 313 | return target; |
| 314 | } |
| 315 |
no test coverage detected