title: Import react components with absolute path
body: <p>Here is my test file</p>
  
  <pre><code>// /imports/components/main.test.js
  import React from 'react'
  import { shallow, mount } from 'enzyme'
  import Main from './main'
  import TextInput from "/imports/ui/textInput"
  ...
  </code></pre>
  
  <p>and the main.js has</p>
  
  <pre><code>// /imports/components/main.js
  import { action1 } from "/imports/actions/myAction"
  </code></pre>
  
  <p>but it throws an error when I run the test, saying</p>
  
  <p><code>Cannot find module '/imports/actions/myAction' from 'main.js'</code></p>
  
  <p>If I comment the <code>import './main'</code>, same thing happen with importing TextInput. I have no issue with importing modules in node_modules.</p>
  
  <p>How can I tell Jest or webpack to import the component using absolute path from project directory (i.e <code>import Foo from /imports/...</code>)?</p>