title: Jest alias import paths not loading
body: <p>I have the following config:</p>
  <p><code>tsconfig-paths.json</code></p>
  <pre><code>{
      &quot;compilerOptions&quot;: {
          &quot;baseUrl&quot;: &quot;src/&quot;,
          &quot;paths&quot;: {
              &quot;@components/*&quot;: [&quot;Components/*&quot;],
              &quot;@interfaces/*&quot;: [&quot;Interfaces/*&quot;],
              &quot;@helpers/*&quot;: [&quot;Helpers/*&quot;],
              &quot;@api/*&quot;: [&quot;Api/*&quot;]
          }
      }
  }
  </code></pre>
  <p>my `jest-config.js loads the above file:</p>
  <pre><code>const { pathsToModuleNameMapper } = require('ts-jest/utils');
  
  const { compilerOptions } = require('./tsconfig-paths.json');
  
  module.exports = {
      moduleNameMapper: pathsToModuleNameMapper(
          compilerOptions.paths /*, { prefix: '&lt;rootDir&gt;/' } */
      ),
  };
  </code></pre>
  <p>however when I run the test I get the following:</p>
  <p><strong>Cannot find module '@interfaces/Api/SubscriptionStatus.enum' from 'src/Containers/Monitoring/Monitoring.logic.ts'</strong></p>
  <p>even though the <code>interfaces</code> alias is defined</p>
  <p><a href="https://i.stack.imgur.com/6R4he.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6R4he.png" alt="enter image description here" /></a></p>
  <p>the <code>tsconfig-paths.json</code> is used to create alias in my React app and that works.</p>
  <p><strong>UPDATE</strong></p>
  <p>I have noticed specifically that having the following with an absolute import works:</p>
  <pre><code>import { dateShortFormatter } from '../../Helpers/Date';
  import { notNull } from '../../Helpers/typeGuards';
  import { SubscriptionStatusEnum } from '../../Interfaces/Api/SubscriptionStatus.enum';
  </code></pre>