| 437 | * means literally a test suite wants {@link isTestPath}. |
| 438 | */ |
| 439 | export function isTestFile(filePath: string): boolean { |
| 440 | // Non-production directories: examples, samples, benchmarks, fixtures, demos. |
| 441 | // Check both mid-path (/integration/) and start-of-path (integration/) since |
| 442 | // file paths may be stored as relative paths without a leading slash. |
| 443 | return isTestPath(filePath) || matchesNonProductionDir(filePath.toLowerCase()); |
| 444 | } |
| 445 | |
| 446 | /** |
| 447 | * Check if a file path names a TEST — a suite that exercises other code. |