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

Method isTestFile

src/core/search.ts:338–346  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

336 }
337
338 private isTestFile(filePath: string): boolean {
339 const normalized = filePath.toLowerCase().replace(/\\/g, '/');
340 return (
341 normalized.includes('.spec.') ||
342 normalized.includes('.test.') ||
343 normalized.includes('/e2e/') ||
344 normalized.includes('/__tests__/')
345 );
346 }
347
348 private normalizeQueryTerms(query: string): string[] {
349 return query

Callers 1

scoreAndSortResultsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected