CodeQL library for JavaScript
Search

Predicate getTestFile

Gets the test file for f with stem extension stemExt. That is, a file named 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)