title: _this.store.getState is not a function when testing react component with enzyme and mocha
body: <p>I'm trying to test a React component with enzyme and mocha as follows</p>
  <pre><code>import { mount, shallow } from 'enzyme';
  import React from 'react';
  import chai, { expect } from 'chai'
  import chaiEnzyme from 'chai-enzyme'
  import sinon from 'sinon'
  
  import MyComponent from 'myComponent'
  
  chai.use(chaiEnzyme())
  describe('MyComponent', () =&gt; {
    const store = {
      id: 1
    }
    it ('renders', () =&gt; {
      const wrapper = mount(&lt;MyComponent /&gt;, {context: {store: store}})
    })
  })
  </code></pre>
  <p>haven't actually written the test as it fails at the declaration of wrapper</p>
  <p>Error message: TypeError: _this.store.getState is not a function</p>
  <p>No idea what the problem is and cant find anything addressing this!</p>
  <p>Any help would be great!</p>