Predicate getTestFile
Gets the test file for f
with stem extension stemExt
, where stemExt
is “test” or “spec”.
That is, a file named <base>.<stemExt>.<ext>
in the
same directory as f
which is named <base>.<ext>
.
Import path
import semmle.javascript.frameworks.Testing
File getTestFile(File f, string stemExt)