adapter library

For Capybara's own packages that record a state library, such as capybara_devtools_riverpod: not a stable API.

Classes

CapybaraStateStore
A store whose state Capybara records, as the packages for Riverpod and Bloc register them.

Functions

debugAttachStateEngine(void emit(String kind, Map<String, Object?> payload)) → void Function()
Sends the state.* events of the stores registered from now on, and of those already, to emit, as if a Capybara server were connected: for the tests of adapter packages. The function returned stops it.
trackState({required String library, required String label, required String via, required bool actions, required Object? read(), String? note}) → CapybaraStateStore?
Registers a store whose state Capybara records, before or after Capybara.run. Null where Capybara does nothing: release builds and the web.