Hey Robert, do you have any advice on testing with...
# kilua
c
Hey Robert, do you have any advice on testing with Kilua/Compose? We want to write tests for client-side logic (just basic handling server responses correctly, client side validation, etc), but we’re running into issues with mocking supports works on js, but not with Kotlin >2.2.0. Our main goal is to test the logic itself rather than specifically the UI, but we would test UI if it were feasible. I looked through the Compose documentation for testing, but it seems too early for web support.
r
I'm only doing some simple testing of logic in UI like this: https://github.com/rjaros/kilua/blob/main/kilua/src/commonTest/kotlin/dev/kilua/form/FormSpec.kt I'm not using any mocking or test libraries.
kilua-testutils
module contains some useful functions