testing library

Test utilities for voo_watch_ui — install a fake transport without the per-test boilerplate of constructing a FakeVooWatchTransport, VooWatch.debugInstall-ing it, and resetting both singletons.

Classes

FakeVooWatchTransport
In-process VooWatchTransport for widget tests and web/desktop hot-reload previews.

Functions

installFakeVooWatch({bool reset = true}) Future<FakeVooWatchTransport>
Installs a FakeVooWatchTransport as the VooWatch singleton's transport, so widget tests and unit tests can exercise watch-bound code without a real method channel.
resetVooWatch() Future<void>
Tears down the VooWatch and VooWatchUi singletons. Call from tearDown after installFakeVooWatch, or invoke withFakeVooWatch instead to skip manual teardown.
withFakeVooWatch<T>(FutureOr<T> body(FakeVooWatchTransport fake)) Future<T>
Runs body with a FakeVooWatchTransport installed as the singleton's transport, then resets cleanly even if body throws.