(files: Record<string, string>)
| 24 | } |
| 25 | |
| 26 | function write(files: Record<string, string>): void { |
| 27 | for (const [rel, source] of Object.entries(files)) { |
| 28 | fs.mkdirSync(path.dirname(path.join(tempDir!, rel)), { recursive: true }); |
| 29 | fs.writeFileSync(path.join(tempDir!, rel), source); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | afterEach(() => { |
| 34 | cg?.close(); |
no test coverage detected