Possibly a dumb question, but does anyone here hav...
# announcements
p
Possibly a dumb question, but does anyone here have experience with mockk.io, and happen to know if there’s a way to mock constructors that doesn’t result in the underlying class’s real constructor actually being called? From what I can tell (somewhat astonishingly), the default behavior of mockkConstructor() is to actually call a real constructor, then discard its output and substitute a mockk singleton. This is somewhat disappointing, since it suggests that you can’t actually mock constructors with mockkConstructor().
l
I suggest you ask in #C9EJFT6DB
p
oho! I was unaware
thanks!
👍 1