Testing
Testing is done with overrides. You need to place a ProviderScopeOverride
and then specify the overrides
argument with a list containing the providers followed by .overrideWithValue(T value)
.
Examples
The text displayed in the following example is “100” because overrides always take precedence.
Testing is possible also with providers that take an argument, and it is done the same exact way.