You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project I have a expect method call logDebug which is defined inside the Platform file and is has an implementation on. the Android side and on the IOS Side. When this method is used inside of the classes I am testing I get a -> Method d in android.util.Log not mocked (running the test on Android)
I wonder if there's a way to mock expect/actual methods and how do it?
Thanks!
The text was updated successfully, but these errors were encountered:
jorgezim
changed the title
How to mock a method defined in Platform
How to mock a method defined as expect
Dec 1, 2023
There is none. At the moment, KSP does not support multiplatform well (which is why we have to resort to the JVM sourceset trick).
Support of expect/actual is tracked by #18 and might become possible with KSP 2.0, when it relases.
Hello, first thanks for this great library.
In my project I have a expect method call logDebug which is defined inside the Platform file and is has an implementation on. the Android side and on the IOS Side. When this method is used inside of the classes I am testing I get a -> Method d in android.util.Log not mocked (running the test on Android)
I wonder if there's a way to mock expect/actual methods and how do it?
Thanks!
The text was updated successfully, but these errors were encountered: