Snapshot Testing
Create a snapshot test for the ProfileCard component to ensure UI consistency.
We'll cover the following...
Snapshot tests are a very useful tool when we want to make sure that our UI does not change unexpectedly. A snapshot test case follows these steps:
It renders the UI component.
It then takes a snapshot and compares it to a reference snapshot file stored alongside the test file. ...