Skip to content

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

Closed
@heitorlessa

Description

@heitorlessa

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

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationloggerThis item relates to the Logger Utility

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions