()
| 107 | } |
| 108 | |
| 109 | async function callerThatThrows() { |
| 110 | const result = await mockPromptAiSdk() |
| 111 | if (result.aborted) { |
| 112 | throw new Error(`Prompt aborted: ${result.reason}`) |
| 113 | } |
| 114 | return result.value |
| 115 | } |
| 116 | |
| 117 | await expect(callerThatThrows()).rejects.toThrow('Prompt aborted: Request cancelled') |
| 118 | }) |
no test coverage detected