testing library
Test helpers for apps built on AG Flow: a fake ApiProvider and a reset for AG's static registries.
Import it from tests only:
import 'package:ag_flow/testing.dart';
Classes
- AgFakeApiProvider
- An ApiProvider for tests: it answers from replies set up in advance and never touches the network.
Functions
-
resetAgFlow(
) → void - Clears everything AG Flow keeps between tests: every AgLocator registration and live route scope (disposing realized controllers) and the current AgRouteData.