title: Jest coverage, all values at zero
body: <p>I introduced code coverage in my project, but all the values (except one) are stuck at zero.</p>
  
  <p>Here is my jest-config.json:</p>
  
  <pre><code>{
    "collectCoverageFrom": [
      "../shared/utils/*.js"
    ],
    "coverageDirectory": "&lt;rootDir&gt;/coverage",
    "coverageThreshold": {
      "global": {
        "branches": 0,
        "functions": 0,
        "lines": 0,
        "statements": 0
      }
    },
    "moduleFileExtensions": [
      "js"
    ],
    "moduleNameMapper": {
      "\\.(css|scss)$": "identity-obj-proxy"
    },
    "moduleDirectories": [
      "node_modules",
      "job-board/node_modules"
    ],
    "modulePaths": [
      "&lt;rootDir&gt;/client"
    ],
    "roots": [
      "&lt;rootDir&gt;",
      "&lt;rootDir&gt;/../shared"
    ],
    "testRegex": "\\.test\\.js$"
  }
  </code></pre>
  
  <p>My files being tested are in <code>../shared/src/utils/*.js</code> and my tests are in <code>../shared/src/utils/__tests__/*.test.js</code>.</p>
  
  <p>And when I run <code>node --harmony_proxies node_modules/jest-cli/bin/jest.js --config ./jest-config.json --coverage</code>, I get this result:</p>
  
  <p><a href="https://i.stack.imgur.com/jOMg3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jOMg3.png" alt="coverage result"></a></p>
  
  <p>Only, nearly all the functions in those files are fully tested...</p>
  
  <p>Has anyone come across this problem?</p>
  
  <p>Thanks in advance.</p>