| 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')); |