Hey guys,
Any update on a compatible mocking library for Kotlin/JS? Already tried Mockk, but seems that's not supported yet.
b
Big Chungus
09/13/2021, 11:15 AM
JS doesn't have reflection, so the only way you could achieve mocking there is via compiler plugin (API is still experimental). Otherwise things you can do at runtime are very limited. Don't think there's anything better than Mockk for kotlin.js mocking right now.
c
Chukwukammadu Anizoba
09/13/2021, 11:18 AM
Alright got it. Thanks! 👍🏾👍🏾👍🏾
b
Big Chungus
09/13/2021, 11:23 AM
I recommend sticking to good old stubbing for KMP tests.