(fileName: string)
| 98 | } |
| 99 | |
| 100 | export async function expectFileToExist(fileName: string): Promise<void> { |
| 101 | try { |
| 102 | await fs.access(fileName, constants.F_OK); |
| 103 | } catch { |
| 104 | throw new Error(`File ${fileName} was expected to exist but not found...`); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | export async function expectFileToMatch(fileName: string, regEx: RegExp | string): Promise<void> { |
| 109 | const content = await readFile(fileName); |
no outgoing calls
no test coverage detected