Perhaps someone could suggest a tool for mocking in Kotlin/JS project?
b
Big Chungus
03/02/2023, 9:40 AM
No reflection and as such no mocking in js. Mockk has some limited support, but that's very limited by itself. Your best bet is using fakes instead. There are some ksp based generators that can generate fakes for your interfaces
Here's one
implementation("tech.antibytes.kmock:kmock:0.3.0-rc05")
You can find more by going to kamp.petuska.dev filtering by js target and searching by "mock" term.