MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / isTestFile

Function isTestFile

src/eval/harness.ts:16–24  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

14}
15
16function 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
26function matchesPattern(filePath: string, patterns: string[]): boolean {
27 const normalized = normalizePath(filePath);

Callers 1

evaluateQueryFunction · 0.70

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected