(body: string)
| 15 | }); |
| 16 | |
| 17 | function fakeOpencode(body: string): string { |
| 18 | const dir = mkdtempSync(join(tmpdir(), "mc-oc-bin-")); |
| 19 | tempDirs.push(dir); |
| 20 | const bin = join(dir, "opencode"); |
| 21 | writeFileSync(bin, `#!/bin/sh\n${body}\n`); |
| 22 | chmodSync(bin, 0o755); |
| 23 | return bin; |
| 24 | } |
| 25 | |
| 26 | describe.if(isPosix)("opencode helpers with a resolved binary path", () => { |
| 27 | it("getAvailableModels invokes the given absolute binary", () => { |
no outgoing calls
no test coverage detected