travis-ci-com
381 of 628 branches covered (60.67%)
Branch coverage included in aggregate %.
6 of 6 new or added lines in 3 files covered. (100.0%)
1443 of 1696 relevant lines covered (85.08%)
55.73 hits per line
1 |
import * as fs from 'fs'; |
|
2 |
|
12✔ |
3 |
export function unlinkSafe(path: string): boolean { |
12✔ |
4 |
try {
|
|
5 |
fs.unlinkSync(path); |
63✔ |
6 |
|
63✔ |
7 |
return true; |
63✔ |
8 |
} catch {
|
|
9 |
return false; |
|
10 |
} |
× |
11 |
} |