()
| 41 | } |
| 42 | |
| 43 | async function tmpdir() { |
| 44 | const dir = await fs.mkdtemp(path.join(os.tmpdir(), "opencode-core-test-")) |
| 45 | return { |
| 46 | path: dir, |
| 47 | async [Symbol.asyncDispose]() { |
| 48 | await fs.rm(dir, { recursive: true, force: true }) |
| 49 | }, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | async function gone(pid: number, timeout = 5_000) { |
| 54 | const end = Date.now() + timeout |
no outgoing calls
no test coverage detected