title: Having an Error with React, Jest and Enzyme setup
body: <p>I am trying to setup my test environment in my React project and facing an issue while setting up jest and enzyme. Adding my code files for reference.</p>
  
  <p>Following is my code:</p>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>"scripts": {
      "test": "jest"
    },
    "jest": {
      "verbose": true,
      "testURL": "http://localhost/",
      "transform": {
        "^.+\\.js$": "babel-jest"
      },
      "setupFiles": [
        "./jest.config.js"
      ],
      "snapshotSerializers": [
        "enzyme-to-json/serializer"
      ]
    },
    "dependencies": {
      "html-webpack-plugin": "3.2.0",
      "react": "^16.4.2",
      "react-dom": "^16.4.2",
      "react-redux": "5.0.7",
      "redux": "^4.0.0",
      "save": "^2.3.2",
      "webpack": "^4.16.5"
    },
    "devDependencies": {
      "babel-cli": "^6.16.0",
      "babel-core": "^6.2.1",
      "babel-jest": "^23.4.2",
      "babel-loader": "7.1.5",
      "babel-preset-react": "^6.1.18",
      "babel-preset-env": "^1.7.0",
      "babel-preset-stage-1": "^6.24.1",
      "webpack-cli": "^3.1.0",
      "webpack-dev-server": "^3.1.5",
      "jest": "^23.4.2",
      "react-test-renderer": "16.4.2",
      "enzyme": "3.4.1",
      "enzyme-adapter-react-16": "1.2.0",
      "enzyme-to-json": "3.3.4"
    }
  </code></pre>
  
  <p><strong>jest.config.js</strong></p>
  
  <pre><code>import { shallow, render, mount, configure } from 'enzyme';
  import Adapter from 'enzyme-adapter-react-16';
  
  configure({ adapter: new Adapter() });
  
  global.shallow = shallow;
  global.render = render;
  global.mount = mount;
  </code></pre>
  
  <p><strong>.babelrc</strong></p>
  
  <pre><code>{
    "presets": ["react", "env", "stage-1"]
  }
  </code></pre>
  
  <p>When I run, npm run test, I face the following issue:</p>
  
  <pre><code>import { shallow, render, mount, configure } from 'enzyme';
         ^
  
  SyntaxError: Unexpected token {
      at new Script (vm.js:74:7)
      at createScript (vm.js:246:10)
      at Object.runInThisContext (vm.js:298:10)
      at Module._compile (internal/modules/cjs/loader.js:657:28)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
      at Module.load (internal/modules/cjs/loader.js:599:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
      at Function.Module._load (internal/modules/cjs/loader.js:530:3)
      at Module.require (internal/modules/cjs/loader.js:637:17)
      at require (internal/modules/cjs/helpers.js:20:18)
  </code></pre>
  
  <p>Please let me know if someone's faced something similar and found a solution.</p>