diff --git a/__mocks__/svg.js b/__mocks__/svg.js new file mode 100644 index 0000000000..c2dc9d9aa7 --- /dev/null +++ b/__mocks__/svg.js @@ -0,0 +1,2 @@ +export const Icon = 'div'; +export default "image-file-stub"; diff --git a/package.json b/package.json index f2d9c60eed..957982c474 100644 --- a/package.json +++ b/package.json @@ -214,7 +214,8 @@ "/test/setupTests.js" ], "moduleNameMapper": { - "\\.(gif|png|svg|ttf|woff2)$": "/__mocks__/imageMock.js", + "\\.(gif|png|ttf|woff2)$": "/__mocks__/imageMock.js", + "\\.svg$": "/__mocks__/svg.js", "\\$webapp/i18n/languages.json": "/__mocks__/languages.json", "decoderWorker\\.min\\.js": "/__mocks__/empty.js", "decoderWorker\\.min\\.wasm": "/__mocks__/empty.js",