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

Mocks for tables-streams invocations #8

Open
alexbepple opened this issue Aug 17, 2023 · 0 comments
Open

Mocks for tables-streams invocations #8

alexbepple opened this issue Aug 17, 2023 · 0 comments

Comments

@alexbepple
Copy link

alexbepple commented Aug 17, 2023

Is your feature request related to a problem? Please describe.

I am using tables-streams and have found it difficult to mock their invocations.
As a workaround, I have been using if (event.Records[0].eventSourceARN === 'arn:architect-sandbox') {…} inside the Lambda handler. Cringe.

Describe the solution you'd like

I think it should work the same way it works for other mocks, e.g. queues.
Maybe I am missing something, but I also see no particular value in the predefined mocks for insert, modify & delete events.

@alexbepple alexbepple changed the title Mocks for table streams invocations Mocks for tables-streams invocations Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant