title: How to mock redux actions with Jest
body: <p>I've got a React.Component which use a redux actions <code>this.props.setFacebookToken(accessToken)</code> to set a variable. How would you test this kind of behaviour ?</p>
  
  <p>Here is my Component :</p>
  
  <pre><code>export default class FacebookButtonConnect extends Component {
    constructor(props) {
      ...
    }
  
    async _onFacebookButtonPress() {
      try {
        ... // fetching credentials from Facebook
        this.props.setFacebookToken(accessToken);
      } catch (err) {
         throw err;
      }
    }
  }
  </code></pre>
  
  <p>I'm using Jest for unit testing.</p>