Writing Unit Tests with Jest

What Jest feature is used for detecting unexpected changes?
test('matches the snapshot', () => {
  const user = generateUser();
  expect(user).toMatchSnapshot();
});
Next Question (14/20)