Skip to content

Commit 24e50d1

Browse files
committed
Fix Mockito and node issues
Signed-off-by: Gopal S Akshintala <[email protected]>
1 parent b256161 commit 24e50d1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,18 @@ testing {
6060
}
6161
}
6262

63-
node { nodeProjectDir = file("${project.projectDir}/js") }
63+
node {
64+
nodeProjectDir = file("${project.projectDir}/js")
65+
download = true
66+
}
6467

6568
tasks {
6669
check { dependsOn(npmInstall) }
67-
test { dependsOn(npmInstall) }
70+
test {
71+
dependsOn(npmInstall)
72+
jvmArgs.add("-javaagent:${mockitoAgent.asPath}")
73+
}
74+
named<Test>("integrationTest") { jvmArgs.add("-javaagent:${mockitoAgent.asPath}") }
6875
}
6976

7077
kover { reports { total { html { onCheck = true } } } }

0 commit comments

Comments
 (0)