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 + 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"
) )