title: How can initialise a new variable by calling constructor function in sequelize-mock?
body: <p>How can we test the following line of code using sequelize mock?</p>
  <pre><code>let newUser = new User();
  </code></pre>
  <p>When I tried calling the function that contains this line of code it is throwing an error saying User is not a constructor.</p>
  <p>I'm mocking the User model in my test file the following way:</p>
  <pre><code>jest.mock('./../../../models/User', () =&gt; {
      const SequelizeMock = require(&quot;sequelize-mock&quot;);
      const dbMock = new SequelizeMock();
      return dbMock.define('User', {})
  })
  </code></pre>