CLI only generates test_helpers for NavigationService how about RouterService?
Closed this issue · 0 comments
Dionnie123 commented
Describe the bug
I'm trying to unit test my StartUpViewModel and it gives me an error the type RouterService is not registered inside GetIt which makes sense because the CLI only generated a test_helper for NavigationService and not RouterService
To reproduce
- Run basic stacked project
- Create a basic ViewModel inject RouterService instead of NavigationService
- Unit test the ViewModel, flutter test
Expected behavior
Must pass the ViewModel test
Screenshots
Additional Context
I thought there's a command to generate test for service e.g stacked create test router_service but none lol
No response