(error: unknown)
| 65 | } |
| 66 | |
| 67 | const expectLLMError = (error: unknown) => { |
| 68 | expect(error).toBeInstanceOf(LLMError) |
| 69 | if (!(error instanceof LLMError)) throw new Error("expected LLMError") |
| 70 | return error |
| 71 | } |
| 72 | |
| 73 | const errorHttp = (error: LLMError) => ("http" in error.reason ? error.reason.http : undefined) |
| 74 |
no outgoing calls
no test coverage detected