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

mock.calls[0][0] #268

Open
kaihendry opened this issue Apr 4, 2022 · 0 comments
Open

mock.calls[0][0] #268

kaihendry opened this issue Apr 4, 2022 · 0 comments

Comments

@kaihendry
Copy link

Hi there! Is there a better way to inspect parameters passed to a mocked Lambda invoke call here?

https://github.com/kaihendry/aws-jest-lambda/blob/main/__tests__/handler.test.js#L17

I find accessing parameters via mock.calls[0][0] awkward. Maybe I'm too sensitive? Haha

Thanks again,

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