(filePath: string | null, redactPaths: boolean)
| 110 | } |
| 111 | |
| 112 | function formatPath(filePath: string | null, redactPaths: boolean): string { |
| 113 | if (!filePath) { |
| 114 | return 'none'; |
| 115 | } |
| 116 | |
| 117 | const normalized = filePath.replace(/\\/g, '/'); |
| 118 | if (!redactPaths) { |
| 119 | return normalized; |
| 120 | } |
| 121 | |
| 122 | const base = normalized.split('/').pop() || normalized; |
| 123 | return `path#${hashPath(normalized)}/${base}`; |
| 124 | } |
| 125 | |
| 126 | export async function evaluateFixture({ |
| 127 | fixture, |
no test coverage detected