title: TypeError: (0 , _umi.connect) is not a function while using jest
body: <p>I am using jest and enzyme for unit testing. But instead of react-redux, I am using umi for centralised state management but yeah behind the scenes it uses redux only. Now when I run test files I am getting this error</p>
  <p>TypeError: (0 , _umi.connect) is not a function</p>
  <pre><code>  101 | };
    102 | 
  &gt; 103 | export default connect(({ login, loading }: ConnectState) =&gt; ({
        |                ^
    104 |   userLogin: login,
    105 |   submitting: loading.effects['login/login'],
    106 | }))(Login);
  
    at Object.&lt;anonymous&gt; (src/pages/user/login/index.tsx:103:16)
    at Object.&lt;anonymous&gt; (src/pages/user/login/login.test.js:6:1)
  </code></pre>
  <p>Here is my test file</p>
  <pre><code>import { shallow, configure } from 'enzyme';
  import Adapter from 'enzyme-adapter-react-16';
  configure({ adapter: new Adapter() });
  
  describe('Login component tests', () =&gt; {
    let wrapper = shallow(
      &lt;LoginContainer.WrappedComponent userLogin={{ status: '', message: '' }} /&gt;,
    );
  })
  </code></pre>