Is there a good example of unit testing MPP Ktor c...
# ktor
d
Is there a good example of unit testing MPP Ktor client using serialization with
MockEngine
?
r
It's a couple months old now but I did a proof-of-concept at https://github.com/russhwolf/ktor-demo
d
☝️ That's the kinda thing I was looking for as it includes serilization.
Thanks @russhwolf @Tobi!
👍 1
I got serilization to work in the tests! But sadly it break in common code.
Good thing is that the thing I am building is for the JVM so I will have to leave the whole multiplatform thing for anther time.
r
why is it different between tests and common?
d
SomeClass.serializer()
doesnt work
IntelliJ says it can not resolve
.serialzer()
I resorted to just using Gson instead of KotlinxSerializer