Skip to content

Commit

Permalink
fix: 🔥 added svg mock
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep-deriv committed Sep 3, 2024
1 parent 6200d30 commit 7711a13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = {
'@docusaurus/plugin-content-docs/client': '@docusaurus/plugin-content-docs/src/client/index.ts',
'@site/(.*)': '<rootDir>/$1',
'\\.(css|scss|sass|less)$': 'identity-obj-proxy',
'\\.(svg)$': '<rootDir>/src/__mocks__/file.mock.ts',
},
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'],
rootDir: '.',
Expand Down
1 change: 1 addition & 0 deletions src/__mocks__/file.mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = 'SVGMock';

0 comments on commit 7711a13

Please sign in to comment.