(result: RunCLIResult)
| 109 | } |
| 110 | |
| 111 | function parseJson(result: RunCLIResult): any { |
| 112 | try { |
| 113 | return JSON.parse(result.stdout); |
| 114 | } catch (error) { |
| 115 | throw new Error( |
| 116 | `Could not parse JSON.\nCommand: ${result.command}\nstdout:\n${result.stdout}\nstderr:\n${result.stderr}\n${String(error)}` |
| 117 | ); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | function expectNoLocalOpenSpec(): void { |
| 122 | expect(fs.existsSync(path.join(appRepo, 'openspec'))).toBe(false); |
no outgoing calls
no test coverage detected