From fc7a6e98268d34f313d79c817e38c09ad6cde960 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 2 Jun 2022 23:51:43 +0200 Subject: test(unit): fix Jest errors due to images import I mocked some SVG files and moves the branding photo to public directory. It is more a workaround than a real fix but it works so... --- src/components/atoms/links/social-link.test.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/atoms') diff --git a/src/components/atoms/links/social-link.test.tsx b/src/components/atoms/links/social-link.test.tsx index e13689c..b3f9a4c 100644 --- a/src/components/atoms/links/social-link.test.tsx +++ b/src/components/atoms/links/social-link.test.tsx @@ -6,6 +6,9 @@ import SocialLink from './social-link'; * the svg files manually. */ jest.mock('@assets/images/social-media/github.svg', () => 'svg-file'); +jest.mock('@assets/images/social-media/gitlab.svg', () => 'svg-file'); +jest.mock('@assets/images/social-media/linkedin.svg', () => 'svg-file'); +jest.mock('@assets/images/social-media/twitter.svg', () => 'svg-file'); describe('SocialLink', () => { it('render a social link', () => { -- cgit v1.2.3