(deps: Pick<ExportDeps, 'cwd' | 'listSessions'>)
| 201 | } |
| 202 | |
| 203 | async function findPreviousSession(deps: Pick<ExportDeps, 'cwd' | 'listSessions'>): Promise< |
| 204 | SessionSummary | undefined |
| 205 | > { |
| 206 | const sessions = await deps.listSessions(deps.cwd()); |
| 207 | return sessions[0]; |
| 208 | } |
| 209 | |
| 210 | function toPreviousSessionSummary(summary: SessionSummary): PreviousSessionSummary { |
| 211 | return { |
no test coverage detected