(signal: { aborted: boolean })
| 407 | |
| 408 | describe('mixed pattern with fallback', () => { |
| 409 | async function primaryProvider(signal: { aborted: boolean }): Promise<PromptResult<string>> { |
| 410 | if (signal.aborted) { |
| 411 | return promptAborted() |
| 412 | } |
| 413 | // Simulate primary provider failure |
| 414 | throw new Error('Primary provider unavailable') |
| 415 | } |
| 416 | |
| 417 | async function fallbackProvider(signal: { aborted: boolean }): Promise<PromptResult<string>> { |
| 418 | if (signal.aborted) { |
no test coverage detected