Stands in for CantonConnectProvider with the session already in a given shape, so a component
test asserts on markup without paying the SDK's discovery sleeps or its connect flow. The shape
is a real connectionMachine actor rehydrated at the state the props ask for, so the hooks
select from it exactly as they do in the app. connect and disconnect move the session, but
reach for the real provider plus createMockAdapter to test connecting itself — the intermediate
states here are not the SDK's.
Stands in for
CantonConnectProviderwith the session already in a given shape, so a component test asserts on markup without paying the SDK's discovery sleeps or its connect flow. The shape is a realconnectionMachineactor rehydrated at the state the props ask for, so the hooks select from it exactly as they do in the app.connectanddisconnectmove the session, but reach for the real provider pluscreateMockAdapterto test connecting itself — the intermediate states here are not the SDK's.