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