Skip to content

Commit b4b1ce8

Browse files
authored
Fix HTML tests after Kotlin 2.2 migration (#5410)
[Migration to Provider API for Kotlin/Wasm and Kotlin/JS properties](https://kotlinlang.org/docs/whatsnew2120.html#migration-to-provider-api-for-kotlin-wasm-and-kotlin-js-properties) ## Release Notes N/A
1 parent 355b49d commit b4b1ce8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

html/compose-compiler-integration/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@ fun build(
6060
failureExpected: Boolean = false,
6161
composeVersion: String,
6262
kotlinVersion: String,
63-
vararg buildCmd: String = arrayOf("build", "jsNodeRun")
63+
vararg buildCmd: String = arrayOf("build", "jsNodeDevelopmentRun")
6464
) {
6565
val isWin = System.getProperty("os.name").startsWith("Win")
6666
val arguments = buildCmd.toMutableList().also {
6767
it.add("-Pcompose.version=$composeVersion")
6868
it.add("-Pkotlin.version=$kotlinVersion")
69+
it.add("--stacktrace")
70+
it.add("--info")
6971
}.toTypedArray()
7072

7173
val procBuilder = if (isWin) {

html/compose-compiler-integration/main-template/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ kotlin {
3131
}
3232

3333
tasks.findByName("jsBrowserProductionWebpack")!!.mustRunAfter("jsDevelopmentExecutableCompileSync")
34-
tasks.findByName("jsNodeRun")!!.mustRunAfter("jsProductionExecutableCompileSync")
34+
tasks.findByName("jsNodeDevelopmentRun")!!.mustRunAfter("jsProductionExecutableCompileSync")

html/compose-compiler-integration/main-template/lib/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ kotlin {
3131

3232

3333
tasks.findByName("jsBrowserProductionWebpack")!!.mustRunAfter("jsDevelopmentExecutableCompileSync")
34-
tasks.findByName("jsNodeRun")!!.mustRunAfter("jsProductionExecutableCompileSync")
34+
tasks.findByName("jsNodeDevelopmentRun")!!.mustRunAfter("jsProductionExecutableCompileSync")

0 commit comments

Comments
 (0)