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__/@next-deploy/aws-cloudfront.js
2020-07-09 18:01:18 -07:00

15 lines
454 B
JavaScript

const mockCloudFront = jest.fn();
const mockCreateInvalidation = jest.fn();
const cloudfront = jest.fn(() => {
const cloudFront = mockCloudFront;
cloudFront.init = () => {};
cloudFront.default = () => {};
cloudFront.context = {};
return cloudFront;
});
cloudfront.mockCreateInvalidation = mockCreateInvalidation;
cloudfront.mockCloudFront = mockCloudFront;
cloudfront.createInvalidation = mockCreateInvalidation;
module.exports = cloudfront;