title: Jest: cannot find module required inside module to be tested (relative path)
body: <p>I have this component:</p>
  
  <pre><code>import React from 'react';
  import VideoTag from './VideoTag';
  import JWPlayer from './JWPlayer';
  
  class VideoWrapper extends React.Component {
  //... component code
  }
  </code></pre>
  
  <p>That based on some logic renders another component inside ( VideoTag or JWPlayer) but when I try to test it in a jest file i get the error:</p>
  
  <p><strong>Cannot find module './VideoTag'</strong></p>
  
  <p>The three coponents are in the same directory that's why it actually works when I transpile it and see it in action in a browser but looks like Jest is having problems resolving those relative paths, this is the jest file:</p>
  
  <pre><code>jest.dontMock('../src/shared/components/Video/VideoWrapper.jsx');
  
  import React from 'react';
  import ReactDOM from 'react-dom';
  TestUtils from 'react-addons-test-utils';
  
  import VideoWrapper from '../src/shared/components/Video/VideoWrapper.jsx';
  
  describe('VideoWrapper tests', () =&gt; {
    it('Render JWPlayer', () =&gt; {
  
        let vWrapper = TestUtils.renderIntoDocument(
        &lt; VideoWrapper model={model} /&gt;
    );
  
    });
  });
  </code></pre>
  
  <p>The error is at line:</p>
  
  <pre><code>import VideoWrapper from '../src/shared/components/Video/VideoWrapper.jsx';
  </code></pre>
  
  <p>How do I tell jest how to handle relative paths?</p>