I am trying to stub and verify popUntil() to write test for my viewmodel. @ferrarafer @FilledStacks Could you please explain how i would achieve this in stacked navigation service.
To reproduce
Here are the steps to reproduce this:
In testhelpers
MockNavigationService getAndRegisterNavigationService() {
removeRegistrationIfExists<NavigationService>();
final service = MockNavigationService();
locator.registerSingleton<NavigationService>(service);
return service;
}
Error: No matching calls. All calls: MockNavigationService.popUntil(Closure: (Route) => bool, {id: null})
(If you called verify(...).called(0);, please instead use verifyNever(...);.)
Expected behavior
I would like to be able to test when popUntil(), pushNamedAndRemoveUntil() and locator().back().
Describe the bug
I am trying to stub and verify popUntil() to write test for my viewmodel. @ferrarafer @FilledStacks Could you please explain how i would achieve this in stacked navigation service.
To reproduce
Here are the steps to reproduce this:
verify(...).called(0);
, please instead useverifyNever(...);
.)Expected behavior
I would like to be able to test when popUntil(), pushNamedAndRemoveUntil() and locator().back().
Screenshots
No response
Additional Context
No response