title: Cannot find module at AVA test
body: <p>I am trying to setup the AVA at my react project.</p>
  
  <p>So I added this code into my package.json:</p>
  
  <pre><code> "ava": {
      "babel": "inherit",
      "register": [
        "babel-register",
        "./test/helpers/browser-env.js",
        "ignore-styles"
      ]
    }
  
    "scripts": {
      ...
      "test": "ava \"app/**/*.test.js\" --verbose"
     }
  </code></pre>
  
  <p>And made the Header.test.js:</p>
  
  <pre><code>import test from 'ava';
  
  import React from 'react';
  import { renderJSX } from 'jsx-test-helpers';
  
  import Header from './Header';
  
  test('it renders', (t) =&gt; {
    const wrapper = renderJSX(&lt;Header attendant={null} /&gt;);
    t.true(wrapper);
  });
  </code></pre>
  
  <p>When I run the test I got this error:</p>
  
  <blockquote>
    <p>Error: Cannot find module './Header'</p>
  </blockquote>
  
  <p>The picture from my folder structure:</p>
  
  <p><a href="https://i.stack.imgur.com/dnNyH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dnNyH.png" alt="My folder structure"></a></p>
  
  <p>Any help?</p>