()
| 67 | }); |
| 68 | |
| 69 | function findTimelineFile(): string | null { |
| 70 | const projectDirs = fs.readdirSync(slugDir); |
| 71 | if (projectDirs.length === 0) return null; |
| 72 | const f = path.join(slugDir, projectDirs[0], 'timeline.jsonl'); |
| 73 | return fs.existsSync(f) ? f : null; |
| 74 | } |
| 75 | |
| 76 | describe('gstack-timeline-log', () => { |
| 77 | test('accepts valid JSON and appends to timeline.jsonl', () => { |