- mockClient<TInput, TOutput, TConfiguration>(client: InstanceOrClassType<Client<TInput, TOutput, TConfiguration>>, sandbox?: {
sandbox?: SinonSandbox;
}): AwsStub<TInput, TOutput, TConfiguration>
-
Type Parameters
-
TInput extends object
-
TOutput extends MetadataBearer
-
TConfiguration
Parameters
-
client: InstanceOrClassType<Client<TInput, TOutput, TConfiguration>>
-
sandbox: {
sandbox?: SinonSandbox;
} = {}
-
Optional
sandbox?: SinonSandbox
Returns 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.Returns
Stub allowing to configure Client's behavior