Replies: 1 comment
-
Hi, I had a similar issue today, having to lookup a JSON object, but kept getting back the dummy string, leading to JSON parse failing. Anyway, you can mock ssm lookups by setting the app context to include your ssm parameters. E.g.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What are best practices for unit testing when your stack includes SSM Parameter Store lookups? I've tried mocking StringParameter.valueFromLookup, but the patterns/examples from the Jest site don't seem to work. The test always fails with an error about account and region being missing, implying that the function is not in fact mocked.
How does one mock SSM lookups or avoid them in the unit tests by other means?
Beta Was this translation helpful? Give feedback.
All reactions