MCPcopy Index your code
hub / github.com/callstack/agent-device / makeTempWorkspace

Function makeTempWorkspace

src/__tests__/cli-config.test.ts:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import { runCliCapture, type CapturedDaemonRequest } from './cli-capture.ts';
12
13function makeTempWorkspace(): { root: string; home: string; project: string } {
14 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'agent-device-config-'));
15 const home = path.join(root, 'home');
16 const project = path.join(root, 'project');
17 fs.mkdirSync(home, { recursive: true });
18 fs.mkdirSync(project, { recursive: true });
19 return { root, home, project };
20}
21
22test('CLI merges config defaults with precedence user < project < env < CLI', async () => {
23 const { root, home, project } = makeTempWorkspace();

Callers 1

cli-config.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected