Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firehose putRecordBatch not working #271

Open
YTvW opened this issue May 24, 2022 · 0 comments
Open

Firehose putRecordBatch not working #271

YTvW opened this issue May 24, 2022 · 0 comments

Comments

@YTvW
Copy link

YTvW commented May 24, 2022

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);
    });```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant