title: Importing images breaks jest test
body: <p>In React components importing assets
      (ex, import logo from "../../../assets/img/logo.png)
  gives such error </p>
  
  <blockquote>
    <p>({"Object.":function(module,exports,require,__dirname,__filename,global,jest){�PNG<br>
        SyntaxError: Invalid or unexpected token
          at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:305:17)</p>
  </blockquote>
  
  <p>my jest config is </p>
  
  <pre><code>"jest": {
  "testRegex": ".*\\.spec\\.js$",
  "moduleFileExtensions": [
    "js",
    "jsx",
    "json"
  ],
  "moduleDirectories": [
    "node_modules",
    "src",
    "assets"
  ],
  "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",
    "\\.(css|less|scss)$": "&lt;rootDir&gt;/__mocks__/styleMock.js"
  },
  "verbose": true,
  "bail": true
  }
  </code></pre>
  
  <p>what am i missing?</p>