title: Type is missing the following properties from type 'ElementClass': context, setState, forceUpdate, props, refs
body: <p>I am using NextJS with Typescript. I am trying to test my application using Jest+Enzyme. I am getting the following error message:</p>
  
  <p>**
  Test suite failed to run</p>
  
  <pre><code>TypeScript diagnostics (customize using `[jest-config].globals.ts-jest.diagnostics` option):
  __tests__/Quest.spec.tsx:15:27 - error TS2605:
  </code></pre>
  
  <blockquote>
    <p>JSX element type 'Quest' is not a constructor function for JSX
    elements.
          Type 'Quest' is missing the following properties from type 'ElementClass': context, setState, forceUpdate, props, refs</p>
  </blockquote>
  
  <p>**</p>
  
  <p>I have added the code for my Test file and the code for which I have written the test:</p>
  
  <p><strong>Quest.spec.tsx</strong> (Test file)</p>
  
  <pre><code>import * as React from 'react';
  import {mount} from 'enzyme';
  import Quest from '../Quest';
  
  describe('Quest page', () =&gt; {
    it('should render without throwing an error', function () {
      const wrapper = mount(&lt;Quest/&gt;);
    })
  }) 
  </code></pre>