MCPcopy Index your code
hub / github.com/anomalyco/opencode / tmpdir

Function tmpdir

packages/core/test/effect/cross-spawn-spawner.test.ts:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43async 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
53async function gone(pid: number, timeout = 5_000) {
54 const end = Date.now() + timeout

Callers 3

patch.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected