(fileName: string)
| 88 | } |
| 89 | |
| 90 | export async function expectFileNotToExist(fileName: string): Promise<void> { |
| 91 | try { |
| 92 | await fs.access(fileName, constants.F_OK); |
| 93 | } catch { |
| 94 | return; |
| 95 | } |
| 96 | |
| 97 | throw new Error(`File ${fileName} was expected not to exist but found...`); |
| 98 | } |
| 99 | |
| 100 | export async function expectFileToExist(fileName: string): Promise<void> { |
| 101 | try { |
no outgoing calls
no test coverage detected