(dir: string, files: Record<string, string>)
| 45 | }; |
| 46 | |
| 47 | const write = (dir: string, files: Record<string, string>): void => { |
| 48 | for (const [rel, content] of Object.entries(files)) { |
| 49 | fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true }); |
| 50 | fs.writeFileSync(path.join(dir, rel), content); |
| 51 | } |
| 52 | }; |
| 53 | |
| 54 | const gitRepo = (dir: string): void => { |
| 55 | git(dir, 'init', '-q'); |
no test coverage detected