This repository has been archived on 2026-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
next-deploy/packages/serverless-component/__mocks__/@serverless/aws-s3.js
2020-07-05 16:56:57 -07:00

15 lines
316 B
JavaScript

const mockS3Upload = jest.fn();
const mockS3 = jest.fn();
const s3 = jest.fn(() => {
const bucket = mockS3;
bucket.init = () => {};
bucket.default = () => {};
bucket.context = {};
bucket.upload = mockS3Upload;
return bucket;
});
s3.mockS3Upload = mockS3Upload;
s3.mockS3 = mockS3;
module.exports = s3;