snapshot react testing code example
Example 1: update snapshot jest
npx jest --u
Example 2: snapshot testing
exports[`renders correctly 1`] = `
<a
className="normal"
href="http://www.facebook.com"
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
Facebook
</a>
`;