• Creates a @launchdarkly/react-sdk client and a pre-wired Provider component, ready to wrap components under test.

    Parameters

    • context: LDContext

      the LDContext to identify the test client as

    • Optional initialFlags: {
          [key: string]: LDFlagValue;
      }

      optional seed map of flag keys to values

      Optional
      • [key: string]: LDFlagValue
    • Optional options: Partial<LDReactClientOptions>

      optional react-sdk options

      Optional

    Returns CreateTestClientProviderResult

    an object containing the Provider component, client, and testData

Generated using TypeDoc