(fs: { [path: string]: string })
| 55 | } |
| 56 | |
| 57 | export function writeMultipleFiles(fs: { [path: string]: string }) { |
| 58 | return Promise.all(Object.keys(fs).map((fileName) => writeFile(fileName, fs[fileName]))); |
| 59 | } |
| 60 | |
| 61 | export function replaceInFile(filePath: string, match: RegExp | string, replacement: string) { |
| 62 | return readFile(filePath).then((content: string) => |
no test coverage detected