(file: string, source: string)
| 34 | } |
| 35 | |
| 36 | function write(file: string, source: string) { |
| 37 | const absolute = path.join(projectRoot, file); |
| 38 | fs.mkdirSync(path.dirname(absolute), { recursive: true }); |
| 39 | fs.writeFileSync(absolute, source); |
| 40 | } |
| 41 | |
| 42 | beforeAll(async () => { |
| 43 | projectRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-cli-1512-')); |
no test coverage detected