(filename)
| 16 | } |
| 17 | |
| 18 | export function isTestLike(filename) { |
| 19 | const normalized = toRepoRelative(filename); |
| 20 | return ( |
| 21 | /(\.|\/)(test|spec|e2e|node\.test)\.tsx?$/.test(normalized) || normalized.startsWith("tests/") |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | export function isDeclarationFile(filename) { |
| 26 | return toRepoRelative(filename).endsWith(".d.ts"); |
no test coverage detected