(directory: string)
| 19 | }) |
| 20 | |
| 21 | function client(directory: string) { |
| 22 | return createOpencodeClient({ |
| 23 | baseUrl: "http://test", |
| 24 | directory, |
| 25 | fetch: ((req: Request) => Server.Default().app.fetch(req)) as unknown as typeof fetch, |
| 26 | }) |
| 27 | } |
| 28 | |
| 29 | describe("v2 SDK error shape", () => { |
| 30 | test("404 with NamedError body throws a real Error carrying the server message", async () => { |
no test coverage detected