()
| 86 | describe('usage patterns', () => { |
| 87 | it('should support early return on abort', async () => { |
| 88 | async function mockPromptAiSdk(): Promise<PromptResult<string>> { |
| 89 | // Simulate abort |
| 90 | return promptAborted('Request cancelled') |
| 91 | } |
| 92 | |
| 93 | const result = await mockPromptAiSdk() |
| 94 | if (result.aborted) { |
no test coverage detected