Jest snapshot test fail when including Fontawesome-React icon components.
I don't pass a title or aria-labelledby to the SVG components, and even when I do pass it those props, the snapshot continues to hash the props. Tests fail to pass since a new hash is generated in those two props every time the tests run.
"@fortawesome/react-fontawesome": "^0.1.4",
"jest": "^23.6.0",
<svg
- aria-labelledby="svg-inline--fa-title-y4Cv9dkIlhtu"
+ aria-labelledby="svg-inline--fa-title-gIn5ZJBsxixz"
className="svg-inline--fa fa-user-circle fa-w-16 fa-1x "
color="whitesmoke"
data-css-knsav2=""
data-icon="user-circle"
data-prefix="fas"
@@ -23,11 +23,11 @@
}
viewBox="0 0 496 512"
xmlns="http://www.w3.org/2000/svg"
>
<title
- id="svg-inline--fa-title-y4Cv9dkIlhtu"
+ id="svg-inline--fa-title-gIn5ZJBsxixz"
style={Object {}}
>
User Profile
</title>