title: Jest - SyntaxError: Cannot use import statement outside a module
body: <p>I am using <code>jest:24.9.0</code> without any configuration, installed globally  from a create-react-app. Inside these files I am using es6 modules. There is no error when using <code>"test": "react-scripts test"</code></p>
  
  <p>However when I move to use <code>jest</code> with <code>"test": "jest --config jest.config.js",</code> I see the below error.</p>
  
  <pre><code> FAIL  src/configuration/notifications.test.js
    ● Test suite failed to run
  
      /var/www/management/node/src/configuration/notifications.test.js:1
      ({"Object.&lt;anonymous&gt;":function(module,exports,require,__dirname,__filename,global,jest){import notifications from './notifications';
                                                                                               ^^^^^^
  
      SyntaxError: Cannot use import statement outside a module
  </code></pre>