From e358ec431fc5f559b56d883d50a17ba34604a74d Mon Sep 17 00:00:00 2001 From: Nada Date: Mon, 16 Sep 2024 16:42:58 +0400 Subject: [PATCH] fix: coveralls --- .../AlertComponent/__tests__/AlertComponent.spec.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/my-ads/components/AlertComponent/__tests__/AlertComponent.spec.tsx b/src/pages/my-ads/components/AlertComponent/__tests__/AlertComponent.spec.tsx index 7ced1132..c9823418 100644 --- a/src/pages/my-ads/components/AlertComponent/__tests__/AlertComponent.spec.tsx +++ b/src/pages/my-ads/components/AlertComponent/__tests__/AlertComponent.spec.tsx @@ -5,6 +5,12 @@ import AlertComponent from '../AlertComponent'; const mockProps = { onClick: jest.fn(), }; + +jest.mock('@deriv-com/ui', () => ({ + ...jest.requireActual('@deriv-com/ui'), + useDevice: () => ({ isDesktop: true }), +})); + describe('AlertComponent', () => { it('should render the component as expected', () => { render();