github
90 of 157 branches covered (0.0%)
112 of 112 new or added lines in 8 files covered. (100.0%)
2710 of 6521 relevant lines covered (41.56%)
1.32 hits per line
1 |
import fs from 'fs/promises' |
1✔ |
2 |
|
1✔ |
3 |
/** Returns true if a file exists. */
|
1✔ |
4 |
const exists = (path: string) => |
1✔ |
5 |
fs.stat(path).then( |
× |
6 |
() => true,
|
× |
7 |
() => false,
|
× |
8 |
) |
1✔ |
9 |
|
1✔ |
10 |
export default exists |
1✔ |