/** * Canonical test-file predicate shared by the call-graph builder and the * artifact generator. These two must agree: the artifact generator excludes * test files from signature extraction and the production edge store, while the * call-graph builder marks their nodes `isTest` and derives `tested_by` edges. * When the two definitions diverged, test code using directory conventions * (tests/, __tests__/) or *Spec.kt/*Test.scala leaked into the production graph * (polluting hubs/entry-points/stats) and `tested_by` edges were silently lost. * * Covers, by language: * JS/TS: foo.test.ts, foo.spec.tsx, __tests__/foo.ts * Python: test_foo.py, foo_test.py * Go: foo_test.go * C/C++: foo_test.cpp, foo_test.cc, foo_test.cxx * Ruby/PHP: tests/foo.rb, tests/foo.php (directory convention) * Java/Kotlin: FooTest.java, FooTests.java, FooIT.java, FooSpec.kt, * and the Maven/Gradle src/test/ source tree * Scala: FooTest.scala, FooSpec.scala */ export declare function isTestFile(filePath: string): boolean; //# sourceMappingURL=test-file.d.ts.map