We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7802270 commit 5e1864bCopy full SHA for 5e1864b
tests/__mocks__/svg.js
@@ -1,2 +1,8 @@
1
-export default 'SvgrURL';
2
-export const ReactComponent = 'div';
+import React from 'react';
+
3
+const SvgrMock = React.forwardRef( ( props, ref ) => (
4
+ <span ref={ ref } { ...props } />
5
+) );
6
7
+export const ReactComponent = SvgrMock;
8
+export default SvgrMock;
0 commit comments