[Gradle, JS] Add test for KT-48241
This commit is contained in:
+6
@@ -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() {
|
||||
|
||||
+22
@@ -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"))
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
pluginManagement {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "kotlin-js-project-with-test-dependencies"
|
||||
Reference in New Issue
Block a user