title: `moduleNameMapper` settings in jest.config.js doesn't work on CircleCI
body: <p>I have tested with my React-app in typescript, using ts-jest like below.</p>
  
  <pre class="lang-js prettyprint-override"><code>import * as React from "react";
  import * as renderer from "react-test-renderer";
  
  import { ChartTitle } from "Components/chart_title";
  
  describe("Component: ChartTitle", () =&gt; {
    it("will be rendered with no error", () =&gt; {
      const chartTitle = "My Chart 1";
      renderer.create(&lt;ChartTitle title={chartTitle} /&gt;);
    });
  });
  </code></pre>
  
  <p>and it has passed in my local environment but failed in CircleCI.</p>
  
  <pre class="lang-sh prettyprint-override"><code> FAIL  __tests__/components/chart_title.tsx
    ● Test suite failed to run
  
      TypeScript diagnostics (customize using `[jest-config].globals.ts-jest.diagnostics` option):
      __tests__/components/chart_title.tsx:4:28 - error TS2307: Cannot find module 'Components/chart_title'.
  
      4 import { ChartTitle } from "Components/chart_title";                              
                                   ~~~~~~~~~~~~~~~~~~~~~~~~
  </code></pre>
  
  <p>This <code>Components/</code> is an alias expression by <code>moduleNameMapper</code>, and I think it doesn't work in only CircleCI.</p>
  
  <p><code>jest --showConfig</code> option tells me there is no difference between local and CI environment.</p>
  
  <p>Is there any fault in my settings?</p>
  
  <h2>app/frontend/jest.config.js</h2>
  
  <pre><code>module.exports = {
    globals: {
      "ts-jest": {
        tsConfig: "tsconfig.json",
        diagnostics: true
      },
      NODE_ENV: "test"
    },
    moduleNameMapper: {
      "^Components/(.+)$": "&lt;rootDir&gt;/src/components/$1"
    },
    moduleDirectories: ["node_modules", 'src'],
    moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json"],
    transform: {
      "^.+\\.tsx?$": "ts-jest"
    },
    verbose: true
  };
  </code></pre>
  
  <h2>app/frontend/tsconfig.json</h2>
  
  <pre><code>{
    "compilerOptions": {
      "baseUrl": "src",
      "outDir": "dist",
      "allowJs": true,
      "checkJs": true,
      "moduleResolution": "node",
      "sourceMap": true,
      "noImplicitAny": true,
      "target": "esnext",
      "module": "commonjs",
      "lib": ["es6", "dom"],
      "jsx": "react",
      "strict": false,
      "removeComments": true,
      "types": ["jest"]
    },
    "typeRoots": ["node_modules/@types"],
    "paths": {
      "Components/*": ["src/components/*"]
    },
    "include": ["src/**/*"],
    "exclude": ["node_modules", "__tests__"]
  }
  </code></pre>
  
  <h2>app/frontend/package.json</h2>
  
  <pre><code>{
    "scripts": {
      "build": "webpack --mode development --watch",
      "build-production": "node_modules/.bin/webpack --mode production",
      "test": "jest",
      "lint": "npx eslint src/**/* __tests__/**/* --ext \".ts, .tsx\"",
    },
  }
  </code></pre>
  
  <h2>app/.circleci/.config.yml</h2>
  
  <pre><code>version: 2
  jobs:
    build:
      ...
      steps:
        - run:
          name: run tests for frontend
          command: npm test -- -u
          working_directory: frontend
  </code></pre>