push
github
564 of 630 branches covered (0.0%)
Branch coverage included in aggregate %.
57 of 69 new or added lines in 8 files covered. (82.61%)
3202 of 3294 relevant lines covered (97.21%)
5656.8 hits per line
|
import path from "path";
|
11✔ |
|
|
11✔ |
|
export default function convertPathToPosix(filePath: string) { |
|
|
const isExtendedLengthPath = filePath.startsWith("\\\\?\\"); |
8,927✔ |
|
|
8,927✔ |
|
if (isExtendedLengthPath) {
|
|
NEW
|
return filePath;
|
× |
NEW
|
} |
× |
|
|
8,927✔ |
|
return filePath.split(path.win32.sep).join(path.posix.sep);
|
8,927✔ |
|
} |
8,927✔ |