Class JestTest

A Jest test, that is, an invocation of a global function named test where the first argument is a string and the second argument is a function. Additionally, the invocation happens in a file named <base>.test.<ext> in the same directory as a file named <base>.<ext>.

Import path

import semmle.javascript.frameworks.Testing

Direct supertypes

Indirect supertypes

Inherited predicates

getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getLocation

Gets this element’s location.

from Locatable
getNumLines

Gets the number of lines covered by this element.

from Locatable
getStartLine

Gets the line on which this element starts.

from Locatable
toString

Gets a textual representation of this element.

from Locatable

Charpred