(file: string, content: string)
| 361 | const originalFiles = new Map<string, string>() |
| 362 | |
| 363 | export function createFile(file: string, content: string) { |
| 364 | fs.mkdirSync(dirname(file), { recursive: true }) |
| 365 | fs.writeFileSync(file, content, 'utf-8') |
| 366 | onTestFinished(() => { |
| 367 | if (fs.existsSync(file)) { |
| 368 | fs.unlinkSync(file) |
| 369 | } |
| 370 | }) |
| 371 | } |
| 372 | |
| 373 | export function editFile(file: string, callback: (content: string) => string) { |
| 374 | const content = fs.readFileSync(file, 'utf-8') |
no outgoing calls
no test coverage detected