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 +
|
||||
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"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user