• Preparing search index...
  • The search index is not available
AWS SDK v3 Client mock - v4.0.2
  • AWS SDK v3 Client mock
  • mockClient

Function mockClient

  • mockClient<TInput, TOutput, TConfiguration>(client, sandbox?): AwsStub<TInput, TOutput, TConfiguration>
  • Creates and attaches a stub of the Client#send() method. Only this single method is mocked. If method is already a stub, it's replaced.

    Type Parameters

    • TInput extends object
    • TOutput extends MetadataBearer
    • TConfiguration

    Parameters

    • client: InstanceOrClassType<Client<TInput, TOutput, TConfiguration>>

      Client type or instance to replace the method

    • sandbox: {
          sandbox?: SinonSandbox;
      } = {}

      Optional sinon sandbox to use

      • Optional sandbox?: SinonSandbox

    Returns AwsStub<TInput, TOutput, TConfiguration>

    Stub allowing to configure Client's behavior

    • Defined in packages/aws-sdk-client-mock/src/mockClient.ts:13

Settings

Member Visibility

Theme

AWS SDK v3 Client mock - v4.0.2
  • Loading...

Generated using TypeDoc