title: How to configure Jest and babel-jest for specific folder
body: <p>I'm getting the following error:</p>
  
  <pre><code>import React from 'react';
  ^^^^^^
  SyntaxError: Unexpected token import
  </code></pre>
  
  <p>The reason is that some module/s are not been compiled when published in npm.</p>
  
  <p>I was wondering, how I can include them in the babel-jest compilation specific node_modules folder?</p>
  
  <p>This is my current configuration in the package.json</p>
  
  <pre><code>"jest": {
      "silent": false,
      "moduleNameMapper": {
        "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "&lt;rootDir&gt;/__mocks__/fileMock.js",
        "\\.(scss|css|less)$": "&lt;rootDir&gt;/__mocks__/styleMock.js"
      },
      "setupFiles": [
        "&lt;rootDir&gt;/__mocks__/localStorageMock.js"
      ],
      "transform": {
        "^.+\\.jsx$": "babel-jest",
        "^.+\\.js$": "babel-jest"
      }
  </code></pre>
  
  <p>I didn't find any solution in the documentation. It would be great if I can do something like this or something similar, adding which folder/s to transform:</p>
  
  <pre><code>"transformPaths": [ "path/to/file.js", "path/to/file.jsx"]
  </code></pre>