title: Jest gives an error: "SyntaxError: Unexpected token export"
body: <p>I'm using Jest to test my React app. </p>
  
  <p>Recently, I added <a href="https://github.com/uber/deck.gl" rel="noreferrer">DeckGL</a> to my app. My tests fail with this error:</p>
  
  <pre><code>Test suite failed to run
  
  /my_project/node_modules/deck.gl/src/react/index.js:21
  export {default as DeckGL} from './deckgl';
  ^^^^^^
  
  SyntaxError: Unexpected token export
  
    at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:318:17)
    at Object.&lt;anonymous&gt; (node_modules/deck.gl/dist/react/deckgl.js:9:14)
    at Object.&lt;anonymous&gt; (node_modules/deck.gl/dist/react/index.js:7:15)
  </code></pre>
  
  <p>This looks like an issue with Jest transforming a node module before running it's tests. </p>
  
  <p>Here is my .babelrc:</p>
  
  <pre><code>{
    "presets": ["react", "es2015", "stage-1"]
  }
  </code></pre>
  
  <p>Here is my jest setup:</p>
  
  <pre><code>"jest": {
      "testURL": "http://localhost",
      "setupFiles": [
        "./test/jestsetup.js"
      ],
      "snapshotSerializers": [
        "&lt;rootDir&gt;/node_modules/enzyme-to-json/serializer"
      ],
      "moduleDirectories": [
        "node_modules",
        "/src"
      ],
      "moduleNameMapper": {
        "\\.(css|scss)$": "&lt;rootDir&gt;/test/EmptyModule.js"
      }
    },
  </code></pre>
  
  <p>I seem to have the correct things necessary to transform <code>export {default as DeckGL }</code>. So any ideas whats going wrong? </p>