aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-06-02 23:51:43 +0200
committerArmand Philippot <git@armandphilippot.com>2022-06-03 11:54:08 +0200
commitfc7a6e98268d34f313d79c817e38c09ad6cde960 (patch)
tree1b859015ef5e52b2c7c4e7521f428fb2215df21d /src/components/organisms/widgets
parente4325dbc5a8c5c9032488691391dcf310dea12ac (diff)
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...
Diffstat (limited to 'src/components/organisms/widgets')
-rw-r--r--src/components/organisms/widgets/social-media.test.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/organisms/widgets/social-media.test.tsx b/src/components/organisms/widgets/social-media.test.tsx
index 45e4a8a..ec6c536 100644
--- a/src/components/organisms/widgets/social-media.test.tsx
+++ b/src/components/organisms/widgets/social-media.test.tsx
@@ -13,7 +13,9 @@ const titleLevel = 2;
* 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('SocialMedia', () => {
it('renders the widget title', () => {