Read one issue back through the real reader (the round-trip oracle).
(id: string)
| 17 | |
| 18 | /** Read one issue back through the real reader (the round-trip oracle). */ |
| 19 | async function readBack(id: string) { |
| 20 | const r = await readWorkspaceIssues(dir) |
| 21 | if (!r.ok) throw new Error(`readWorkspaceIssues not ok: ${JSON.stringify(r)}`) |
| 22 | const issue = r.issues.find((i) => i.id === id) |
| 23 | return { issue, invalid: r.invalid } |
| 24 | } |
| 25 | |
| 26 | describe('createIssue', () => { |
| 27 | it('derives a kebab slug from the title and writes a readable issue', async () => { |
no test coverage detected