Summary
It is possible to mock AWS service operation calls with Jest.
1
This can be done by creating a JavaScript object with the promise key and mocking the value of the promise with the jest.fn().mockImplementation() that will return a Promise that when resolved return a successful response.
1
Additionally, the AWS SDK can be easily mocked using Jest, replacing or mocking the AWS S3 SDK with an implementation that returns a list of objects or an empty response.
2
According to