[Gradle, JS] Add test for KT-47154 regression
#KT-47154 Fixed
This commit is contained in:
+13
@@ -938,3 +938,16 @@ abstract class AbstractKotlin2JsGradlePluginIT(val irBackend: Boolean) : BaseGra
|
|||||||
Gson().fromJson(it.readText(), PackageJson::class.java)
|
Gson().fromJson(it.readText(), PackageJson::class.java)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class GeneralKotlin2JsGradlePluginIT : BaseGradleIT() {
|
||||||
|
@Test
|
||||||
|
fun testJsBothModeWithTests() = with(Project("kotlin-js-both-mode-with-tests")) {
|
||||||
|
setupWorkingDir()
|
||||||
|
gradleBuildScript().modify(::transformBuildScriptWithPluginsDsl)
|
||||||
|
|
||||||
|
build("build") {
|
||||||
|
assertSuccessful()
|
||||||
|
assertNoWarnings()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
plugins {
|
||||||
|
kotlin("js").version("<pluginMarkerVersion>")
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.example"
|
||||||
|
version = "1.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
js(BOTH) {
|
||||||
|
nodejs {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rootProject.name = "kotlin-js-both-mode-with-tests"
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fun foo() = 5
|
||||||
Reference in New Issue
Block a user