Skip to content

Commit 7711a13

Browse files
committed
fix: 🔥 added svg mock
1 parent 6200d30 commit 7711a13

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = {
3333
'@docusaurus/plugin-content-docs/client': '@docusaurus/plugin-content-docs/src/client/index.ts',
3434
'@site/(.*)': '<rootDir>/$1',
3535
'\\.(css|scss|sass|less)$': 'identity-obj-proxy',
36+
'\\.(svg)$': '<rootDir>/src/__mocks__/file.mock.ts',
3637
},
3738
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'],
3839
rootDir: '.',

src/__mocks__/file.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = 'SVGMock';

0 commit comments

Comments
 (0)