(root: string, relPath: string, content: string)
| 13 | |
| 14 | type TestRepo = { |
| 15 | root: string; |
| 16 | cleanup: () => void; |
| 17 | }; |
| 18 | |
| 19 | function writeFile(root: string, relPath: string, content: string): void { |
| 20 | const filePath = path.join(root, relPath); |
| 21 | fs.mkdirSync(path.dirname(filePath), { recursive: true }); |
| 22 | fs.writeFileSync(filePath, content, 'utf-8'); |
no test coverage detected