how to set up snapshot testing in your React tests code example
Example 1: jest update snapshot
jest --updateSnapshot
Copy
Example 2: snapshot testing
exports[`renders correctly 1`] = `
<a
className="normal"
href="http://www.facebook.com"
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
Facebook
</a>
`;