(path: string | undefined)
| 142 | } |
| 143 | |
| 144 | export function getAbsoluteAndRelativePaths(path: string | undefined): { |
| 145 | absolutePath: string | undefined |
| 146 | relativePath: string | undefined |
| 147 | } { |
| 148 | const absolutePath = path ? expandPath(path) : undefined |
| 149 | const relativePath = absolutePath |
| 150 | ? relative(getCwd(), absolutePath) |
| 151 | : undefined |
| 152 | return { absolutePath, relativePath } |
| 153 | } |
| 154 | |
| 155 | export function getDisplayPath(filePath: string): string { |
| 156 | // Use relative path if file is in the current working directory |
no test coverage detected