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
Mocking ApiGatewayManagementApi not working #225
Comments
from READ.me "Also note that if you initialise an AWS service inside a callback from an async function inside the handler function, that won't work either." |
So, @sukruavcuoglu, it is not possible? |
The solution is to replace this with this |
Here is a reduced example of what I'm trying to do.
I have a class with a function that looks like this:
That works as expected. Now comes the part of the test
But when running the tests it throws the error
Seems like the mock is not working. Any help is appreciated.
The text was updated successfully, but these errors were encountered: