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__/aws-cloudfront.ts
2020-07-05 22:30:21 -07:00

13 lines
350 B
TypeScript

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