Writing Unit Tests with Jest
What Jest feature is used for detecting unexpected changes?
test('matches the snapshot', () => {
const user = generateUser();
expect(user).toMatchSnapshot();
});
test('matches the snapshot', () => {
const user = generateUser();
expect(user).toMatchSnapshot();
});