[Gradle, JS] Depends node test on our own mocha reporter

This commit is contained in:
Ilya Goncharov
2019-10-23 13:33:54 +03:00
parent e69ff4363f
commit 7f49caf503
2 changed files with 2 additions and 4 deletions
@@ -27,7 +27,6 @@ class NpmVersions {
val sourceMapSupport = NpmPackageVersion("source-map-support", "0.5.13")
val mocha = NpmPackageVersion("mocha", "6.2.2")
val mochaTeamCityReporter = NpmPackageVersion("mocha-teamcity-reporter", "3.0.0")
val karma = NpmPackageVersion("karma", "4.4.1")
@@ -31,8 +31,7 @@ class KotlinMocha(override val compilation: KotlinJsCompilation) : KotlinJsTestF
override val requiredNpmDependencies: Collection<RequiredKotlinJsDependency>
get() = listOf(
KotlinGradleNpmPackage("test-js-runner"),
versions.mocha,
versions.mochaTeamCityReporter
versions.mocha
)
// https://mochajs.org/#-timeout-ms-t-ms
@@ -69,7 +68,7 @@ class KotlinMocha(override val compilation: KotlinJsCompilation) : KotlinJsTestF
nodeModules.map {
npmProject.require(it)
} + cliArgs.toList() +
cliArg("--reporter", "mocha-teamcity-reporter") +
cliArg("--reporter", "kotlin-test-js-runner/mocha-kotlin-reporter.js") +
cliArg("--timeout", timeout) +
cliArg(
"-r", "kotlin-test-js-runner/kotlin-nodejs-source-map-support.js"