Using Snapshots
Learn to use snapshots to conduct testing.
We'll cover the following...
Calculating the expected value and then comparing it to dynamically calculated values is very common in Redux tests. To save typing time and make the code cleaner to read, we can use one of Jest’s greatest features, snapshots.
Instead of building the expected result, we can ask Jest to run the expect()
...