Fix mocha run
#KT-33579 fixed
This commit is contained in:
+2
-4
@@ -55,12 +55,10 @@ class KotlinMocha(override val compilation: KotlinJsCompilation) : KotlinJsTestF
|
|||||||
|
|
||||||
val args = nodeJsArgs +
|
val args = nodeJsArgs +
|
||||||
nodeModules.map {
|
nodeModules.map {
|
||||||
npmProject.nodeModulesDir.resolve(it).also { file ->
|
npmProject.require(it)
|
||||||
check(file.isFile) { "Cannot find ${file.canonicalPath}" }
|
|
||||||
}.canonicalPath
|
|
||||||
} +
|
} +
|
||||||
listOf(
|
listOf(
|
||||||
"-r", "kotlin-nodejs-source-map-support.js",
|
"-r", "kotlin-test-nodejs-runner/kotlin-nodejs-source-map-support.js",
|
||||||
"--reporter", "mocha-teamcity-reporter"
|
"--reporter", "mocha-teamcity-reporter"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user