[Gradle, JS] Depends node test on our own mocha reporter
This commit is contained in:
-1
@@ -27,7 +27,6 @@ class NpmVersions {
|
|||||||
val sourceMapSupport = NpmPackageVersion("source-map-support", "0.5.13")
|
val sourceMapSupport = NpmPackageVersion("source-map-support", "0.5.13")
|
||||||
|
|
||||||
val mocha = NpmPackageVersion("mocha", "6.2.2")
|
val mocha = NpmPackageVersion("mocha", "6.2.2")
|
||||||
val mochaTeamCityReporter = NpmPackageVersion("mocha-teamcity-reporter", "3.0.0")
|
|
||||||
|
|
||||||
val karma = NpmPackageVersion("karma", "4.4.1")
|
val karma = NpmPackageVersion("karma", "4.4.1")
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -31,8 +31,7 @@ class KotlinMocha(override val compilation: KotlinJsCompilation) : KotlinJsTestF
|
|||||||
override val requiredNpmDependencies: Collection<RequiredKotlinJsDependency>
|
override val requiredNpmDependencies: Collection<RequiredKotlinJsDependency>
|
||||||
get() = listOf(
|
get() = listOf(
|
||||||
KotlinGradleNpmPackage("test-js-runner"),
|
KotlinGradleNpmPackage("test-js-runner"),
|
||||||
versions.mocha,
|
versions.mocha
|
||||||
versions.mochaTeamCityReporter
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://mochajs.org/#-timeout-ms-t-ms
|
// https://mochajs.org/#-timeout-ms-t-ms
|
||||||
@@ -69,7 +68,7 @@ class KotlinMocha(override val compilation: KotlinJsCompilation) : KotlinJsTestF
|
|||||||
nodeModules.map {
|
nodeModules.map {
|
||||||
npmProject.require(it)
|
npmProject.require(it)
|
||||||
} + cliArgs.toList() +
|
} + cliArgs.toList() +
|
||||||
cliArg("--reporter", "mocha-teamcity-reporter") +
|
cliArg("--reporter", "kotlin-test-js-runner/mocha-kotlin-reporter.js") +
|
||||||
cliArg("--timeout", timeout) +
|
cliArg("--timeout", timeout) +
|
||||||
cliArg(
|
cliArg(
|
||||||
"-r", "kotlin-test-js-runner/kotlin-nodejs-source-map-support.js"
|
"-r", "kotlin-test-js-runner/kotlin-nodejs-source-map-support.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user