Open Dancargon opened 1 week ago
Hey, Cuckoo 1 allowed an unintentional syntax of when(stub).method(...).thenX
, but Cuckoo 2 enforces the intended syntax of when(stub.method(...)).thenX
.
Basically the method call needs to be inside the when
call, not after it.
Thanks, it's fixed. Much appreciated!
Hi! I've installed Cocoapod version 2.0.9. It generates the GeneratedMocks file but It fails to compile with a message:
Global function 'when' requires that 'MockGraphQlClientProtocol.Stubbing' (aka 'MockGraphQlClientProtocol.__StubbingProxy_GraphQlClientProtocol') conform to 'BaseStubFunctionTrait'
on all instances of
when
similar to this:MockGraphQlClientProtocol
seems to be generated successfully in the GeneratedMocks file.Any feedback will be much appreciated.
Thanks!