Version: 3.x.x
Testing
Overriding providers#
Consider the next provider
So, maybe in one test you need mock the LoginController behavior then you can use the overrideProvider method.
Next before your test you can use the setUp method.
Cleaning your providers#
Before or after each test you will need the default state of all SimpleNotifier or StateNotifier. So you can use ProviderScope.clear(); to clear all provider saved in the ProviderScope.