kiwi
kiwi copied to clipboard
Code generator does not play nice with mockito
Consider the following code:
@Register.singleton(DeepLinkViewModel, from: MockDeepLinkViewModel)
void registerViewModelFactories();
In this case MockDeepLinkViewModel
is generated by mockito using @GenerateMocks
. This results in the following generated kiwi code:
..registerSingleton<DeepLinkViewModel>((c) => DeepLinkViewModel());
Thinking out loud. I think we need to configure the order in which build_runner should run. We had the same problem with moor