| 15 | } |
| 16 | |
| 17 | export interface CliTestContext { |
| 18 | readonly dir: string |
| 19 | run: (args?: string[]) => Promise<void> |
| 20 | read: (relativePath: string) => Promise<string> |
| 21 | write: (relativePath: string, contents: string) => Promise<void> |
| 22 | resolve: (relativePath: string) => string |
| 23 | cleanup: () => Promise<void> |
| 24 | } |
| 25 | |
| 26 | const TEMP_PREFIX = path.join(os.tmpdir(), 'toon-cli-test-') |
| 27 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…