Resolve symlinks where possible so tmp/realpath quirks don't break equality.
(p: string)
| 150 | |
| 151 | /** Resolve symlinks where possible so tmp/realpath quirks don't break equality. */ |
| 152 | function realpath(p: string): string { |
| 153 | try { |
| 154 | return fs.realpathSync(path.resolve(p)); |
| 155 | } catch { |
| 156 | return path.resolve(p); |
| 157 | } |
| 158 | } |
no test coverage detected