We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d91d8e9 commit 4776d49Copy full SHA for 4776d49
src/main/kotlin/no/eirikb/avatest/actions/AvaJavaScriptTestRunnerRunConfigurationGenerator.kt
@@ -22,7 +22,15 @@ import com.intellij.psi.PsiElement
22
import com.jetbrains.nodejs.run.NodeJsRunConfiguration
23
import java.nio.file.Paths
24
25
-fun JSCallExpression.isTest() = this.methodExpression?.text.equals("test")
+fun JSCallExpression.isTest(): Boolean {
26
+ var text = this.methodExpression?.text
27
+
28
+ if (text != null) {
29
+ return text == "test" || text.startsWith("test.")
30
+ }
31
32
+ return false;
33
+}
34
35
class AvaJavaScriptTestRunnerRunConfigurationGenerator : AnAction() {
36
companion object {
0 commit comments