File tree Expand file tree Collapse file tree
sdk/react/contract-tests/app
tooling/contract-test-utils/src/client-side Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,11 +11,8 @@ import { useLDClient } from '@launchdarkly/react-sdk';
1111
1212export type CommandHandler = ( params : CommandParams ) => Promise < unknown > ;
1313
14- /**
15- * Creates an IClientEntity wrapper for a React-managed client.
16- * The entity's doCommand delegates to the command handler registered
17- * by ClientInstance once the React component mounts.
18- */
14+ // We are creating this wrapper because we have a custom commandHandler implementation to work well
15+ // with React rendering.
1916export function createReactClientEntity (
2017 clientId : string ,
2118 commandHandlers : Map < string , CommandHandler > ,
Original file line number Diff line number Diff line change @@ -7,10 +7,7 @@ import { IClientEntity } from './TestHarnessWebSocket.js';
77
88/**
99 * Base client entity that wraps an SDK client and dispatches test harness
10- * commands. Suitable for browser, react-native, and electron entities.
11- *
12- * Subclass and override `doCommand` to customize command handling for
13- * platform-specific behavior.
10+ * commands.
1411 */
1512export class ClientEntity implements IClientEntity {
1613 protected readonly logger : LDLogger ;
Original file line number Diff line number Diff line change 11/**
22 * Known capability strings from the SDK test harness service spec.
33 * See: https://github.com/launchdarkly/sdk-test-harness/blob/v2/docs/service_spec.md
4- *
5- * Each entity should define its own capabilities array typed against this union,
6- * since different SDKs advertise different capabilities.
74 */
85export type Capability =
96 | 'server-side'
You can’t perform that action at this time.
0 commit comments