willowtreeapps / assertk

assertions for kotlin inspired by assertj
MIT License
760 stars 85 forks source link

Update to Kotlin 1.9 #481

Closed JakeWharton closed 1 year ago

JakeWharton commented 1 year ago

Refs #479. Actual WASM support will come in a follow-up as it's a little more complicated than I hoped (due to usage of coroutines in main tests, and lack of WASM coroutines).

eygraber commented 1 year ago

@JakeWharton is this sufficient for the coroutines - https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental/org/jetbrains/kotlinx/kotlinx-coroutines-test-wasm/

JakeWharton commented 1 year ago

It's been a few weeks since I worked on this, but from what I remember the workaround was pretty simple in isolation (that is, not mixed with the 1.9 upgrade).

The coroutines-specific assertions module already has a coroutine dependency that has to stay pointed at a version from Maven Central so mixing that with an in-development version from a different repository wasn't something I wanted to mess with. Since that module also won't be getting a WASM target yet, I figured it best to wait until they release something to Maven Central and unblock library use.