title: Enzyme expects an adapter to be configured, but found none
body: <p>I have a problem calling <code>enzym's</code> <code>mount</code> function. It says:</p>
  
  <pre><code>Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none. To
        configure an adapter, you should call `Enzyme.configure({ adapter: new Adapter() })`
        before using any of Enzyme's top level APIs, where `Adapter` is the adapter
        corresponding to the library currently being tested. For example:
  
        import Adapter from 'enzyme-adapter-react-15';
  </code></pre>
  
  <p>My <code>setupTests.js</code> file looks like this:</p>
  
  <pre><code>import { configure } from 'enzyme';
  import Adapter from 'enzyme-adapter-react-16';
  
  configure({ adapter: new Adapter() });
  </code></pre>
  
  <p>and in package.json:</p>
  
  <pre><code>"jest": {
      "testEnvironment": "jest-environment-jsdom-global",
      "setupFiles": [
          "&lt;rootDir&gt;/jestConfigs/setupTests.js"
      ],
      "moduleNameMapper": {
          "^.+\\.(css|scss)$": "&lt;rootDir&gt;/jestConfigs/CSSStub.js",
          "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "&lt;rootDir&gt;/jestConfigs/fileStub.js",
          "/common-mms/(.+)": "&lt;rootDir&gt;/App/common-mms/$1"
      }
  },
  </code></pre>
  
  <p>But the problem is - I am using react-16 and enzyme-adapter-react-15 is irrelevant for me. Even if I add enzyme-adapter-react-15 just in case - the error still remains.</p>
  
  <hr>
  
  <p>UPDATE:
  If I copy content of setupTests.js into beginning of each test file - all works fine!
  And if I put <code>console.log(1)</code> into setupTests - it actually prints! Meaning that the file is actually improted on jest initialization.</p>