Skip to content

Commit 5e1864b

Browse files
committed
Fix svg mock
1 parent 7802270 commit 5e1864b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/__mocks__/svg.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
export default 'SvgrURL';
2-
export const ReactComponent = 'div';
1+
import React from 'react';
2+
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

Comments
 (0)