MCPcopy Create free account
hub / github.com/MigoXLab/coderio / makeWorkspace

Function makeWorkspace

tests/utils/code-cache.test.ts:38–48  ·  view source on GitHub ↗
(checkpointPath: string, processPath: string)

Source from the content-addressed store, hash-verified

36 });
37
38 function makeWorkspace(checkpointPath: string, processPath: string): WorkspaceStructure {
39 return {
40 root: tempDir,
41 app: path.join(tempDir, 'my-app'),
42 process: processPath,
43 debug: path.join(tempDir, 'debug'),
44 reports: path.join(tempDir, 'reports.html'),
45 db: path.join(tempDir, 'checkpoint', 'coderio-cli.db'),
46 checkpoint: checkpointPath,
47 };
48 }
49
50 it('should default to empty cache when file does not exist', () => {
51 const ws = makeWorkspace(path.join(tempDir, 'process', 'checkpoint.json'), path.join(tempDir, 'process'));

Callers 1

code-cache.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected