MCPcopy
hub / github.com/anomalyco/opencode / tmpdir

Function tmpdir

packages/tui/test/fixture/fixture.ts:5–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import os from "node:os"
4
5export 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}

Callers 14

theme.test.tsFile · 0.90
sync.test.tsxFile · 0.90
index.tsFile · 0.50
tempRootFunction · 0.50
readFunction · 0.50
createMigrationsFolderFunction · 0.50
sqlite.test.tsFile · 0.50
generate.test.tsFile · 0.50

Calls

no outgoing calls

Tested by 2

tempRootFunction · 0.40
createMigrationsFolderFunction · 0.40