https://kotlinlang.org logo
#moko
Title
# moko
r

romainbsl

05/13/2022, 6:57 AM
Hello 👋 ! I was wondering if someone has solved common testing while using moko-resources. We are convince that more code we put in KMM modules, less error prone it is, thus KMM code is also resolving localisation. But, while testing states that exposes localised strings we have different behavior between JVM and Native targets as Android needs a context, while iOS simulator handle bundles with ease. So, is there a way of testing this, or the only way is to use fakes/mocks of the localisation ? Any help appreciated 🙏.
a

alex009

05/13/2022, 7:02 AM
we use robolectric to get context for android
r

romainbsl

05/13/2022, 8:24 AM
Oh, right! Thank you @alex009 And thank you for the amazing work on moko’s librairies 🙏
😊 1
3 Views