how to update snapshot in react code example
Example 1: jest update snapshot
jest --updateSnapshot
Copy
Example 2: snapshot testing
exports[`renders correctly 1`] = `
Facebook
`;
jest --updateSnapshot
Copy
exports[`renders correctly 1`] = `
Facebook
`;