16 lines
362 B
TypeScript
16 lines
362 B
TypeScript
|
const mockS3 = {
|
||
|
headBucket: jest.fn().mockReturnThis(),
|
||
|
deleteObject: jest.fn().mockReturnThis(),
|
||
|
deleteObjects: jest.fn().mockReturnThis(),
|
||
|
createBucket: jest.fn().mockReturnThis(),
|
||
|
listObjects: jest.fn().mockReturnThis(),
|
||
|
promise: jest.fn().mockReturnThis(),
|
||
|
catch: jest.fn(),
|
||
|
}
|
||
|
|
||
|
const AWS = {
|
||
|
S3: jest.fn(() => mockS3),
|
||
|
}
|
||
|
|
||
|
export default AWS
|