Testing Actions

We'll test Redux actions in our Weather app that's built with React and Redux.

We'll cover the following...

Create a new file called actions.test.js in the src/__tests__ / folder. (create that if you haven’t already) Let’s start by testing the good ol’ changeLocation action. Add the default structure, we’ll need to import the action we want to test and describe “actions” ...