MCPcopy Create free account
hub / github.com/agent-tower/core / makeTempRoot

Function makeTempRoot

packages/server/src/utils/prisma-cli-env.test.ts:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const tempRoots: string[] = [];
8
9function makeTempRoot(): string {
10 const root = path.join(os.tmpdir(), `agent-tower-prisma-env-${Date.now()}-${Math.random().toString(16).slice(2)}`);
11 tempRoots.push(root);
12 return root;
13}
14
15afterEach(() => {
16 for (const root of tempRoots.splice(0)) {

Callers 1

Calls 2

joinMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected