[Gradle, JS] Add test for KT-47154 regression

#KT-47154 Fixed
This commit is contained in:
Alexander Likhachev
2021-06-23 19:27:48 +03:00
parent 26510190cc
commit e8e95e6476
5 changed files with 41 additions and 0 deletions
@@ -938,3 +938,16 @@ abstract class AbstractKotlin2JsGradlePluginIT(val irBackend: Boolean) : BaseGra
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()
}
}
}
@@ -0,0 +1,18 @@
plugins {
kotlin("js").version("<pluginMarkerVersion>")
}
group = "com.example"
version = "1.0"
repositories {
mavenLocal()
mavenCentral()
}
kotlin {
js(BOTH) {
nodejs {
}
}
}
@@ -0,0 +1,8 @@
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}
rootProject.name = "kotlin-js-both-mode-with-tests"