romainbsl

    romainbsl

    4 months ago
    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 🙏.
    alex009

    alex009

    4 months ago
    we use robolectric to get context for android
    romainbsl

    romainbsl

    4 months ago
    Oh, right! Thank you @alex009 And thank you for the amazing work on moko’s librairies 🙏