(filePath: string, text: string, options?: any)
| 71 | } |
| 72 | |
| 73 | export function prependToFile(filePath: string, text: string, options?: any) { |
| 74 | return readFile(filePath).then((content: string) => |
| 75 | writeFile(filePath, text.concat(content), options), |
| 76 | ); |
| 77 | } |
| 78 | |
| 79 | export async function expectFileMatchToExist(dir: string, regex: RegExp): Promise<string> { |
| 80 | const files = await fs.readdir(dir); |
no test coverage detected