[Gradle, JS] Add test for KT-48241

This commit is contained in:
Alexander Likhachev
2021-08-12 16:54:05 +03:00
parent a576160847
commit b74253521e
3 changed files with 36 additions and 0 deletions
@@ -145,6 +145,12 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
)
)
}
// KT-48241
@Test
fun testConfigurationCacheJsWithTestDependencies() = with(transformProjectWithPluginsDsl("kotlin-js-project-with-test-dependencies")) {
testConfigurationCacheOf("assemble", executedTaskNames = listOf(":kotlinNpmInstall"))
}
}
abstract class AbstractConfigurationCacheIT : BaseGradleIT() {
@@ -0,0 +1,22 @@
plugins {
kotlin("js").version("<pluginMarkerVersion>")
}
group = "com.example"
version = "1.0"
repositories {
mavenLocal()
mavenCentral()
}
kotlin {
js(IR) {
nodejs {
}
}
}
dependencies {
testRuntimeOnly(npm("xmlhttprequest", "1.8.0"))
}
@@ -0,0 +1,8 @@
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}
rootProject.name = "kotlin-js-project-with-test-dependencies"