how do you mock extension methods
# announcements
a
how do you mock extension methods
i
I use
mockk
and work just fine with extension functions http://mockk.io/#extension-functions
g
Usually if you need to mock extension method you do something wrong. Maybe you need a class/interface instead, the same rules as with Java statics