LazxDataTestHelpers<T> extension

Testing helpers for LazxData.

Provides waitForValue and expectEmits to simplify async value assertions in tests.

Import via package:lazx/lazx_testing.dart — never bundled in production.

on

Methods

expectEmits(List<T> expected, {Duration timeout = const Duration(seconds: 5)}) Future<void>

Available on LazxData<T>, provided by the LazxDataTestHelpers extension

Collects the next expected.length emissions from stream and verifies they match expected in order.
waitForValue(T targetValue, {Duration timeout = const Duration(seconds: 5)}) Future<void>

Available on LazxData<T>, provided by the LazxDataTestHelpers extension

Completes when targetValue is observed on the stream.