(message: string)
| 73 | |
| 74 | // Helper to create error stream chunks |
| 75 | function createErrorChunks(message: string): Array<StreamChunk> { |
| 76 | return [ |
| 77 | { |
| 78 | type: EventType.RUN_STARTED, |
| 79 | runId: 'run-1', |
| 80 | threadId: 'thread-1', |
| 81 | timestamp: Date.now(), |
| 82 | }, |
| 83 | { |
| 84 | type: EventType.RUN_ERROR, |
| 85 | message, |
| 86 | error: { message }, |
| 87 | timestamp: Date.now(), |
| 88 | }, |
| 89 | ] |
| 90 | } |
| 91 | |
| 92 | describe('createGeneration', () => { |
| 93 | beforeEach(() => { |
no test coverage detected