title: Jest error Unexpected token ... (ES6)
body: <p>I am getting the following error whenever I run jest in commandline:</p>
  
  <pre><code> ● Test suite failed to run
  
  /Users/&lt;USER&gt;/&lt;Project&gt;/src/login/LoginAPI.js:13
          ...headers,
          ^^^
  
  SyntaxError: Unexpected token ...
  </code></pre>
  
  <p>The code that it breaks on uses ES6 ellipses:</p>
  
  <pre><code>headers: {
      ...headers
  },
  </code></pre>
  
  <p>This is what my .babelrc file looks like:</p>
  
  <pre><code>{ "presets":["env", "react"] }
  </code></pre>
  
  <p>And this is what I have in my package.json:</p>
  
  <pre><code>"dependencies": {
      "express": "^4.15.4",
      "express-healthcheck": "^0.1.0",
      "js-cookie": "^2.1.4",
      "normalize.css": "^7.0.0",
      "query-string": "^5.0.0",
      "react": "^15.6.1",
      "react-dom": "^15.6.1",
      "react-router-dom": "^4.2.2"
    },
    "devDependencies": {
      "babel-jest": "^21.2.0",
      "babel-preset-env": "^1.6.1",
      "babel-preset-es2015": "^6.24.1",
      "enzyme": "^3.1.0",
      "enzyme-adapter-react-15": "^1.0.2",
      "jest": "^21.2.1",
      "jest-cli": "^21.2.1",
      "react-scripts": "1.0.10"
    },
    "jest": {
      "moduleNameMapper": {
        "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "&lt;rootDir&gt;/__mocks__/fileMock.js",
        "\\.(css|less)$": "&lt;rootDir&gt;/__mocks__/styleMock.js"
      },
      "moduleFileExtensions": ["js"],
      "moduleDirectories": [
        "node_modules",
        "bower_components",
        "shared"
      ],
      "testPathIgnorePatterns": [
        "/node_modules/",
        "/yarn-cache/"
      ]
    }
  </code></pre>