title: Jest gives `Cannot find module` when importing components with absolute paths
body: <p>Receiving the following error when running Jest</p>
  
  <pre><code>Cannot find module 'src/views/app' from 'index.jsx'
  
    at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)
    at Object.&lt;anonymous&gt; (src/index.jsx:4:12)
  </code></pre>
  
  <p>index.jsx </p>
  
  <pre><code>import AppContainer from 'src/views/app';
  </code></pre>
  
  <p>package.json</p>
  
  <pre><code>  "jest": {
      "collectCoverageFrom": [
        "src/**/*.{js,jsx,mjs}"
      ],
      "setupFiles": [
        "&lt;rootDir&gt;/config/polyfills.js"
      ],
      "testMatch": [
        "&lt;rootDir&gt;/src/**/__tests__/**/*.{js,jsx,mjs}",
        "&lt;rootDir&gt;/src/**/?(*.)(spec|test).{js,jsx,mjs}"
      ],
      "testEnvironment": "node",
      "testURL": "http://localhost",
      "transform": {
        "^.+\\.(js|jsx|mjs)$": "&lt;rootDir&gt;/node_modules/babel-jest",
        "^.+\\.css$": "&lt;rootDir&gt;/config/jest/cssTransform.js",
        "^(?!.*\\.(js|jsx|mjs|css|json)$)": "&lt;rootDir&gt;/config/jest/fileTransform.js"
      },
      "transformIgnorePatterns": [
        "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$"
      ],
      "moduleDirectories": [
          "node_modules",
          "src"
      ],
      "moduleNameMapper": {
        "^react-native$": "react-native-web"
      },
      "moduleFileExtensions": [
        "web.js",
        "js",
        "json",
        "web.jsx",
        "jsx",
        "node",
        "mjs"
      ]
    },
  </code></pre>
  
  <p>My tests that run files that only contain relative paths in the tree run correctly.</p>
  
  <p>To Clarify, I'm looking for how to configure Jest to not fail on absolute paths.</p>