(filePath: string, platform: NodeJS.Platform)
| 89 | } |
| 90 | |
| 91 | function normalizePathForComparison(filePath: string, platform: NodeJS.Platform): string | null { |
| 92 | const trimmed = filePath.trim(); |
| 93 | if (trimmed.length === 0) return null; |
| 94 | try { |
| 95 | return normalizeResolvedPath(realpathSync(trimmed), platform); |
| 96 | } catch { |
| 97 | return normalizeResolvedPath(resolve(trimmed), platform); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | function normalizeResolvedPath(filePath: string, platform: NodeJS.Platform): string { |
| 102 | const resolvedPath = resolve(filePath); |
no test coverage detected