(filePath: string)
| 14 | } |
| 15 | |
| 16 | function isTestFile(filePath: string): boolean { |
| 17 | const normalized = normalizePath(filePath); |
| 18 | return ( |
| 19 | normalized.includes('.spec.') || |
| 20 | normalized.includes('.test.') || |
| 21 | normalized.includes('/e2e/') || |
| 22 | normalized.includes('/__tests__/') |
| 23 | ); |
| 24 | } |
| 25 | |
| 26 | function matchesPattern(filePath: string, patterns: string[]): boolean { |
| 27 | const normalized = normalizePath(filePath); |
no test coverage detected