Jest Mock Help #1846
kbrashears5
started this conversation in
General
Jest Mock Help
#1846
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Need some help with mocking the responses using Jest in the new v3 version.
Previously, I would use the jest mock implementation promise:
to where I could then do
so that the getApiKey call would be mocked and not call the actual AWS SDK and I could do unit/integration testing
I'm a bit confused on how to do that in the new version, since the .promise() appears to have gone away on any of the SDK calls. Getting the following error now after trying to upgrade my package to the latest SDK version:
Any thoughts or advice?
Beta Was this translation helpful? Give feedback.
All reactions