Fix mocha run

#KT-33579 fixed
This commit is contained in:
Ilya Goncharov
2019-09-19 13:46:23 +03:00
parent 9d01c87c51
commit b59fba6707
@@ -55,12 +55,10 @@ class KotlinMocha(override val compilation: KotlinJsCompilation) : KotlinJsTestF
val args = nodeJsArgs +
nodeModules.map {
npmProject.nodeModulesDir.resolve(it).also { file ->
check(file.isFile) { "Cannot find ${file.canonicalPath}" }
}.canonicalPath
npmProject.require(it)
} +
listOf(
"-r", "kotlin-nodejs-source-map-support.js",
"-r", "kotlin-test-nodejs-runner/kotlin-nodejs-source-map-support.js",
"--reporter", "mocha-teamcity-reporter"
)