()
| 3 | import os from "node:os" |
| 4 | |
| 5 | export async function tmpdir() { |
| 6 | const directory = await realpath(await mkdtemp(path.join(os.tmpdir(), "opencode-tui-test-"))) |
| 7 | return { |
| 8 | path: directory, |
| 9 | async [Symbol.asyncDispose]() { |
| 10 | await rm(directory, { recursive: true, force: true }) |
| 11 | }, |
| 12 | } |
| 13 | } |
no outgoing calls