title: Jest and file-loader import
body: <p>I'm currently importing a module using file loader in one of my files in a react app (CRA):</p>
  
  <pre><code>"file-loader?name=scripts/[name].[hash].js!jsstore/dist/jsstore.worker.min.js"
  </code></pre>
  
  <p>When running Jest, it throws this error: </p>
  
  <pre><code>Cannot find module 'file-loader?name=scripts/[name].[hash].js!jsstore/dist/jsstore.worker.min.js'
  </code></pre>
  
  <p>I've attempted different configs in package.json for Jest, by setting either modulePathIgnorePatterns and moduleNameMapper, but neither config setting works:</p>
  
  <pre><code>"modulePathIgnorePatterns": [
          "file-loader?name=scripts/[name].[hash].js!jsstore/dist/jsstore.worker.min.js"
        ]
  </code></pre>
  
  <pre><code>"moduleNameMapper": {
          "file-loader?name=scripts/[name].[hash].js!jsstore/dist/jsstore.worker.min.js": "&lt;rootDir&gt;/node_modules/jsstore/dist/jsstore.worker.min.js"
        }
  </code></pre>