Skip to content

Docs: Do customers need to pass a Lambda context for unit test? #363

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

Closed
heitorlessa opened this issue Dec 28, 2021 · 1 comment
Closed
Assignees
Labels
completed This item is complete and has been merged/shipped documentation Improvements or additions to documentation logger This item relates to the Logger Utility
Milestone

Comments

@heitorlessa
Copy link
Contributor

Description of the improvement

Summary of the proposal

When reading the Logger docs, I've noticed Testing your code section is missing - when writing TS unit tests, will the Capture Lambda Context logic work if no Context is provided or will it fail?

If it will fail, then provide guidance on how to do it.

Python Powertools example for what we need: https://awslabs.github.io/aws-lambda-powertools-python/latest/core/logger/#testing-your-code

How, where did you look for information

Missing or unclear documentation

Improvement

Related existing documentation

Related issues, RFCs

@heitorlessa heitorlessa added the documentation Improvements or additions to documentation label Dec 28, 2021
@saragerion saragerion added the logger This item relates to the Logger Utility label Dec 28, 2021
@dreamorosi dreamorosi added this to the beta-release milestone Dec 30, 2021
@dreamorosi dreamorosi self-assigned this Dec 30, 2021
@github-actions
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@dreamorosi dreamorosi changed the title Logger: Do customers need to pass a Lambda context for unit test? Docs: Do customers need to pass a Lambda context for unit test? Nov 14, 2022
@dreamorosi dreamorosi added the completed This item is complete and has been merged/shipped label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed This item is complete and has been merged/shipped documentation Improvements or additions to documentation logger This item relates to the Logger Utility
Projects
None yet
Development

No branches or pull requests

3 participants