riverpod_testing_library library

A testing library which makes it easy to test providers. Built to be used with the riverpod state management package.

Functions

providerTest<T>(String description, {required ProviderListenable<T> provider, List<Override> overrides = const <Override>[], FutureOr<void> setUp()?, int skip = 0, bool fireImmediately = false, FutureOr<void> act(ProviderContainer container)?, Object expect()?, FutureOr<void> verify(ProviderContainer container)?, FutureOr<void> tearDown()?}) → void
Creates a new riverpod-specific test case with the given description. providerTest will handle asserting that the provider updates with the expected states (in order) after act is executed.