You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a Cuckoo Mock for this protocol . I precise that ViewModel is a Class.
protocol TravelersViewModelProtocol where Self: ViewModel {
var membersDetailsCellViewModel: ParticipantsCellViewModel { get }
var organizerCellViewModel: OrganizerCellViewModel { get }
var invitationCellViewModels: [InvitationCellViewModel]? { get }
var footerText: NSAttributedString { get }
var logger: LoggerProtocol { get }
var tracker: TrackerProtocol { get }
func fetchInvitations()
func sendCoTravelersScreenEvent()
}
However, I face this issue
type 'MockTravelersViewModelProtocol' does not conform to protocol 'TravelersViewModelProtocol'
TravelersViewModelProtocol' requires that 'MockTravelersViewModelProtocol' inherit from 'ViewModel'
I completely understand the issue but I don't know how to solve it.
Do you have any idea ?
Thanks in advance
The text was updated successfully, but these errors were encountered:
alxdenis
changed the title
Error when mock protocol where Self: Class
Can't generate a mock for protocol where Self: Class
Jan 24, 2023
Hello,
I create a
Cuckoo Mock
for thisprotocol
. I precise thatViewModel
is aClass
.However, I face this issue
I completely understand the issue but I don't know how to solve it.
Do you have any idea ?
Thanks in advance
The text was updated successfully, but these errors were encountered: