Snapshot test
Also written: toMatchSnapshot
A test that compares output to a previously saved copy and fails if the output changes. It is a quick way to notice unexpected changes, though differences must be reviewed to see whether they are intended.
Also written: toMatchSnapshot
A test that compares output to a previously saved copy and fails if the output changes. It is a quick way to notice unexpected changes, though differences must be reviewed to see whether they are intended.