We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea64c3 commit 8640a2bCopy full SHA for 8640a2b
redisinsight/__mocks__/svg.js
@@ -1,2 +1,11 @@
1
-export default 'SvgrURL';
2
-export const ReactComponent = 'div';
+import React from 'react';
+
3
+// Mock SVG component for Jest tests
4
+const SvgMock = React.forwardRef((props, ref) => (
5
+ <svg ref={ref} {...props} data-testid="svg-mock" />
6
+));
7
8
+SvgMock.displayName = 'SvgMock';
9
10
+export default SvgMock;
11
+export const ReactComponent = SvgMock;
0 commit comments