(rel: string, body = `export class ${path.basename(rel, '.ts')} {}\n`)
| 35 | const git = (...args: string[]) => |
| 36 | cp.execFileSync('git', args, { cwd: project, encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'] }) as string; |
| 37 | const write = (rel: string, body = `export class ${path.basename(rel, '.ts')} {}\n`) => { |
| 38 | fs.mkdirSync(path.dirname(path.join(project, rel)), { recursive: true }); |
| 39 | fs.writeFileSync(path.join(project, rel), body); |
| 40 | }; |
| 41 | const tempDir = (name: string) => { |
| 42 | const dir = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), name))); |
| 43 | made.push(dir); |
no test coverage detected