hi everyone! I have a question for you: I'm using a constructor mock to mock a builder, how could I return the instance of the mock prototype in every call to a builder method? as in a regular builder pattern. As per the docs
Mocking behavior of such a mock is connected to the special prototype mock denoted by anyConstructed<MockCls>(). There is one instance per class of such a prototype mock
that's the instance I need to return, as in
mockkConstructor(Builder::class)
every { anyConstructed<Builder>().setWhatever(any()) } returns TheConstructedMockInstance
Thanks in advance for your help!