[Gradle, JS] Fix tests
This commit is contained in:
+2
-2
@@ -43,7 +43,7 @@ class Kotlin2JsIrGradlePluginIT : AbstractKotlin2JsGradlePluginIT(true) {
|
|||||||
) {
|
) {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
|
|
||||||
assertTasksExecuted(":compileProductionKotlinJs")
|
assertTasksExecuted(":compileProductionExecutableKotlinJs")
|
||||||
|
|
||||||
assertFileExists("build/js/packages/kotlin-js-nodejs/kotlin/kotlin-js-nodejs.js")
|
assertFileExists("build/js/packages/kotlin-js-nodejs/kotlin/kotlin-js-nodejs.js")
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ class Kotlin2JsIrGradlePluginIT : AbstractKotlin2JsGradlePluginIT(true) {
|
|||||||
gradleBuildScript().appendText(
|
gradleBuildScript().appendText(
|
||||||
"""${"\n"}
|
"""${"\n"}
|
||||||
tasks {
|
tasks {
|
||||||
named("compileProductionKotlinJs").configure {
|
named("compileProductionExecutableKotlinJs").configure {
|
||||||
this as org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrLink
|
this as org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrLink
|
||||||
type = org.jetbrains.kotlin.gradle.targets.js.dsl.BuildVariantKind.DEVELOPMENT
|
type = org.jetbrains.kotlin.gradle.targets.js.dsl.BuildVariantKind.DEVELOPMENT
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -12,5 +12,6 @@ kotlin {
|
|||||||
browser {
|
browser {
|
||||||
}
|
}
|
||||||
produceExecutable()
|
produceExecutable()
|
||||||
|
binaries.executable()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
-1
@@ -9,7 +9,6 @@ dependencies {
|
|||||||
kotlin {
|
kotlin {
|
||||||
target {
|
target {
|
||||||
useCommonJs()
|
useCommonJs()
|
||||||
produceKotlinLibrary()
|
|
||||||
browser {
|
browser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -12,6 +12,5 @@ kotlin {
|
|||||||
useCommonJs()
|
useCommonJs()
|
||||||
browser {
|
browser {
|
||||||
}
|
}
|
||||||
produceKotlinLibrary()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
@@ -15,6 +15,7 @@ kotlin {
|
|||||||
target {
|
target {
|
||||||
useCommonJs()
|
useCommonJs()
|
||||||
produceExecutable()
|
produceExecutable()
|
||||||
|
binaries.executable()
|
||||||
nodejs {
|
nodejs {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user