title: Why am I getting the following error: Enzyme Internal Error: configured enzyme adapter did not inherit from the EnzymeAdapter base class
body: <p>I have set up jest and enzyme and can't get it to run. It complains about the EnzymeAdapter base class.</p>
  
  <p>I have tried </p>
  
  <p><code>configure({})</code> with <code>import { configure } from 'enzyme'</code> </p>
  
  <p><code>Enzyme.configure({})</code> with <code>import Enzyme from 'enzyme'</code></p>
  
  <p><code>new Adapter()</code> with <code>import Adapter from 'enzyme-adapter-react-16';</code></p>
  
  <p><code>new EnzymeAdapter()</code> with <code>import EnzymeAdapter from 'enzyme-adapter-react-16';</code></p>
  
  <p>My setupTests.js:</p>
  
  <pre class="lang-js prettyprint-override"><code>import Enzyme, { configure } from 'enzyme';
  import EnzymeAdapter from 'enzyme-adapter-react-16';
  
  Enzyme.configure({ adapter: new EnzymeAdapter() });
  </code></pre>
  
  <p>The error i get for each test class is the following:</p>
  
  <pre><code>Enzyme Internal Error: configured enzyme adapter did not inherit from the EnzymeAdapter base class
  
        2 | import EnzymeAdapter from 'enzyme-adapter-react-16';
        3 | 
      &gt; 4 | Enzyme.configure({ adapter: new EnzymeAdapter() });
          |        ^
  
        at validateAdapter (node_modules/enzyme/src/validateAdapter.js:43:11)
        at Object.merge [as configure] (node_modules/enzyme/src/configuration.js:11:5)
        at Object.configure (src/setupTests.js:4:8)
            at Array.forEach (&lt;anonymous&gt;)
  </code></pre>
  
  <p>Since I get it for every test suite the setupTests.js works.</p>
  
  <p>The same error appears if I do the configure in the test.js itself</p>
  
  <p>I've been searching for hours with no luck. Has anybody encountered the issue before or have a solution? </p>
  
  <p>Thanks in advance!</p>