travis-ci-com
377 of 619 branches covered (60.9%)
Branch coverage included in aggregate %.
6 of 6 new or added lines in 2 files covered. (100.0%)
1469 of 1722 relevant lines covered (85.31%)
37.46 hits per line
1 |
import * as fs from 'fs'; |
|
2 |
|
8✔ |
3 |
export function unlinkSafe(path: string): boolean { |
8✔ |
4 |
try {
|
|
5 |
fs.unlinkSync(path); |
48✔ |
6 |
|
48✔ |
7 |
return true; |
48✔ |
8 |
} catch {
|
|
9 |
return false; |
|
10 |
} |
× |
11 |
} |