()
| 57 | * Create a simulated 429 error response |
| 58 | */ |
| 59 | export function createSimulated429Error(): Error { |
| 60 | const error = new Error('Rate limit exceeded (simulated)') as Error & { |
| 61 | status: number; |
| 62 | }; |
| 63 | error.status = 429; |
| 64 | return error; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Reset simulation state when switching auth methods |
no outgoing calls
no test coverage detected