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/aws-component/__mocks__/@serverless/aws-s3.ts

15 lines
314 B
TypeScript

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;
export default s3;