title: unexpected token import in ES2017 with babel and Jest
body: <p>I try to use <a href="https://facebook.github.io/jest" rel="nofollow noreferrer">Jest</a> with bablejs and ES2017 in my project, according to the Jest Getting Started page and also <a href="https://babeljs.io/docs/plugins/preset-es2017/" rel="nofollow noreferrer">Bablejs config for ES2017</a> this is my <code>.babelrc</code> file :</p>
  <pre><code>{
    &quot;presets&quot;: [&quot;es2017&quot;],
    &quot;env&quot;: {
      &quot;test&quot;: {
        &quot;presets&quot;: [&quot;es2017&quot;]
      }
    }
  }
  </code></pre>
  <p>And my <code>package.json</code> is:</p>
  <pre><code>{
    &quot;name&quot;: &quot;&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;jest&quot;
    },
    &quot;repository&quot;: {
      &quot;type&quot;: &quot;git&quot;,
      &quot;url&quot;: &quot;&quot;
    },
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;bugs&quot;: {
      &quot;url&quot;: &quot;&quot;
    },
    &quot;homepage&quot;: &quot;&quot;,
    &quot;devDependencies&quot;: {
      &quot;babel-cli&quot;: &quot;^6.26.0&quot;,
      &quot;babel-core&quot;: &quot;^6.26.0&quot;,
      &quot;babel-jest&quot;: &quot;^21.2.0&quot;,
      &quot;babel-polyfill&quot;: &quot;^6.26.0&quot;,
      &quot;babel-preset-es2017&quot;: &quot;^6.24.1&quot;,
      &quot;jest&quot;: &quot;^21.2.1&quot;
    }
  }
  </code></pre>
  <p>When I type <code>npm test</code> to run all my test with jest i get these error :</p>
  <pre><code> ){import StateList from './StateList';
                                                                                           
     ^^^^^^
    SyntaxError: Unexpected token import
  </code></pre>
  <p>It means it doesn't know <code>import</code>.</p>