Canton dApp Booster
    Preparing search index...
    • 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. 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.

      Parameters

      Returns Element

      render(
      <FakeSessionProvider status="connected" party={{ partyId: PARTY, networkId: 'canton:local' }}>
      <ConnectButton />
      </FakeSessionProvider>,
      )