From 7711a13615901701cb38982811536bcddb696c3b Mon Sep 17 00:00:00 2001 From: Sandeep Date: Tue, 3 Sep 2024 15:44:37 +0800 Subject: [PATCH] fix: :fire: added svg mock --- jest.config.js | 1 + src/__mocks__/file.mock.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 src/__mocks__/file.mock.ts diff --git a/jest.config.js b/jest.config.js index b2e090aaa..c59c23c6d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -33,6 +33,7 @@ module.exports = { '@docusaurus/plugin-content-docs/client': '@docusaurus/plugin-content-docs/src/client/index.ts', '@site/(.*)': '/$1', '\\.(css|scss|sass|less)$': 'identity-obj-proxy', + '\\.(svg)$': '/src/__mocks__/file.mock.ts', }, moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'], rootDir: '.', diff --git a/src/__mocks__/file.mock.ts b/src/__mocks__/file.mock.ts new file mode 100644 index 000000000..533beda47 --- /dev/null +++ b/src/__mocks__/file.mock.ts @@ -0,0 +1 @@ +module.exports = 'SVGMock';