github
224 of 520 branches covered (0.0%)
3856 of 6604 relevant lines covered (58.39%)
3.02 hits per line
1 |
import fs from 'fs/promises' |
2✔ |
2 |
|
2✔ |
3 |
/** Returns true if a file exists. */
|
2✔ |
4 |
const exists = (path: string) => |
2✔ |
5 |
fs.stat(path).then( |
× |
6 |
() => true,
|
× |
7 |
() => false,
|
× |
8 |
) |
2✔ |
9 |
|
2✔ |
10 |
export default exists |
2✔ |