aws-sdk-mock icon indicating copy to clipboard operation
aws-sdk-mock copied to clipboard

Firehose putRecordBatch not working

Open YTvW opened this issue 2 years ago • 0 comments

I try to use this library and jest to unit test a lambda function.

But the mock does not seem to do its job, the sdk call goes to the actual service instead of using the mocked function. The Firehose client get initiated inside of the handler.

      const response = {
        FailedPutCount: 0,
        RequestResponses: map(params.Records, (record) => {
          return { RecordId: "test" };
        }),
      };
      callback(null, response);
    });```

YTvW avatar May 24 '22 07:05 YTvW