testing library

Declarative testing utilities for Graft.

Classes

GraftChange<S>
Represents a state transition in a Graft.
GraftRouteObserver
Navigator observer that automatically keeps GraftRouteTracker in sync with navigation events.
GraftTesting
Comprehensive hermetic testing suite and mock isolation registry for Graft.
MemoryStateConfig
Pure in-memory implementation of GraftDryConfig.

Properties

graftRouteObserver → GraftRouteObserver
Convenience navigator observer instance for MaterialApp(navigatorObservers: graftRouteObserver).
final

Functions

graftTest<G extends Graft<S>, S extends GraftState>(String description, {required G build(), Map<Type, Object?>? overrides, void setUp(G graft)?, void seed(G graft)?, FutureOr<void> act(G graft)?, Duration? wait, dynamic expect()?, dynamic expectChanges()?, dynamic errors()?, void verify(G graft)?, void tearDown(G graft)?, dynamic tags}) → void
Declarative testing utility for Graft, modeled after blocTest.