Created
September 4, 2020 11:31
-
-
Save PCreations/9b283d2599f2a7a968f009474ffed98e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mockConfigUpdate = jest.fn(); | |
const mockS3putObjectPromise = jest.fn().mockResolvedValue(); | |
const mockS3putObject = jest.fn().mockImplementation(() => ({ | |
promise: mockS3putObjectPromise, | |
})); | |
const mockS3 = jest.fn().mockImplementation(() => ({ | |
putObject: mockS3putObject, | |
})); | |
const AWSMock = { | |
config: { | |
update: mockConfigUpdate, | |
}, | |
S3: mockS3, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment