MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / looksLikeTest

Function looksLikeTest

ui/src/lib/file-model.ts:139–144  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

137 * than a test file sorted with production.
138 */
139export function looksLikeTest(path: string): boolean {
140 return (
141 /(^|\/)(__tests__|__mocks__|__fixtures__|tests?|spec|fixtures)(\/|$)/.test(path) ||
142 /\.(test|spec)\.[a-z0-9]+$/i.test(path)
143 );
144}
145
146/* --------------------------------------------------------------- outline -- */
147

Callers 2

buildFileRailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected