Harlo, how can we mock in the iosTest under the sh...
# touchlab-tools
l
Harlo, how can we mock in the iosTest under the shared business logic? We use mockk but it seems that iosTest cannot have dependency to the mockk.
p
There is mockmp, but due to flakyness and slowness we test mostly on the JVM. Only the platform specific pieces are tested on apple platforms but these are really trivial
r
There isn't any general mocking framework like Mockk that works on native, though there's a few that will work for interfaces but not classes. I generally recommend against testing only on JVM, because you'll miss issues that are native-specific. But it can be a good first step if you're moving code into common and want to make sure you don't break existing JVM usage. Also, this isn't really a Touchlab-specific question, so you'd probably get more advice if you ask in #multiplatform instead.