Resolve symlinks where possible so tmp/realpath quirks don't break equality.
(p: string)
| 210 | |
| 211 | /** Resolve symlinks where possible so tmp/realpath quirks don't break equality. */ |
| 212 | function realpath(p: string): string { |
| 213 | try { |
| 214 | return fs.realpathSync(path.resolve(p)); |
| 215 | } catch { |
| 216 | return path.resolve(p); |
| 217 | } |
| 218 | } |
no test coverage detected