()
| 43 | savedSettingsDir = process.env.EVOLVER_SETTINGS_DIR; |
| 44 | process.env.EVOLVER_SETTINGS_DIR = settingsDir; |
| 45 | function* events() { |
| 46 | yield Buffer.from('data: {"type":"message_start"}\n\n'); |
| 47 | yield Buffer.from('data: {"type":"content_block_delta","delta":{"text":"hi"}}\n\n'); |
| 48 | yield Buffer.from('data: {"type":"message_stop"}\n\n'); |
| 49 | } |
| 50 | const routes = { |
| 51 | 'POST /test/stream': async () => ({ stream: events(), status: 200 }), |
| 52 | 'POST /test/json': async () => ({ status: 201, body: { ok: true } }), |
no outgoing calls
no test coverage detected