• Creates a @launchdarkly/react-sdk client wired with the TestData plugin and the settings required for offline test usage.

    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 CreateTestClientResult

    an object containing the test client and test data

Generated using TypeDoc