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

Function scopedTmpdir

packages/opencode/test/git/git.test.ts:14–18  ·  view source on GitHub ↗
(options?: Parameters<typeof tmpdir>[0])

Source from the content-addressed store, hash-verified

12const it = testEffect(LayerNode.compile(LayerNode.group([Git.node])))
13
14const scopedTmpdir = (options?: Parameters<typeof tmpdir>[0]) =>
15 Effect.acquireRelease(
16 Effect.promise(() => tmpdir(options)),
17 (tmp) => Effect.promise(() => tmp[Symbol.asyncDispose]()),
18 )
19
20describe("Git", () => {
21 it.live("branch() returns current branch name", () =>

Callers 1

git.test.tsFile · 0.85

Calls 1

tmpdirFunction · 0.90

Tested by

no test coverage detected