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