Snapshot tests are a very useful tool whenever you want to make sure your UI does not change unexpectedly. A typical snapshot test case renders a UI component, takes a snapshot, then compares it to a reference snapshot file stored alongside the test. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new versi
![Snapshot Testing · Jest](https://cdn-ak-scissors.b.st-hatena.com/image/square/94c8eb8ef5c720fb077df0bfef9a568d560f1ca0/height=288;version=1;width=512/https%3A%2F%2Fjestjs.io%2Fimg%2Fopengraph.png)