<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">After installing example and running <code class="notranslate">yarn test</code> the test should pass</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">After running <code class="notranslate">yarn test</code> we are getting an error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Plugin 0 specified in &quot;/with-jest-app/node_modules/next/babel.js&quot; provided an invalid property of &quot;default&quot; (While processing preset: &quot;/with-jest-app/node_modules/next/babel.js&quot;)"><pre class="notranslate"><code class="notranslate">Plugin 0 specified in "/with-jest-app/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/with-jest-app/node_modules/next/babel.js")
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">go to <a href="https://github.com/zeit/next.js/tree/canary/examples/with-jest">https://github.com/zeit/next.js/tree/canary/examples/with-jest</a> and follow readme installation steps</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>v6</td>
</tr>
<tr>
<td>node</td>
<td>v8.9.4</td>
</tr>
<tr>
<td>OS</td>
<td>High Sierra</td>
</tr>
</tbody>
</table>
<p dir="auto">when i run test from npm scripts i have error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  C:\with-jest-app\jest.setup.js:1
    ({&quot;Object.&lt;anonymous&gt;&quot;:function(module,exports,require,__dirname,__filename,global,jest){import { configure } from 'enzyme';
                                                                                                    ^
    
    SyntaxError: Unexpected token {
      
      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)"><pre class="notranslate"><code class="notranslate">  C:\with-jest-app\jest.setup.js:1
    ({"Object.&lt;anonymous&gt;":function(module,exports,require,__dirname,__filename,global,jest){import { configure } from 'enzyme';
                                                                                                    ^
    
    SyntaxError: Unexpected token {
      
      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)
</code></pre></div>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5.1.0</td>
</tr>
<tr>
<td>node</td>
<td>10.0.0</td>
</tr>
</tbody>
</table>