title: How to Ignore files in SONAR for a ReactJs application using JEST for testing
body: <p>Ignore <code>index.js</code> files in sonar for a ReactJs application using <code>Jest</code> for testing.
  My config in <code>package.json</code>:</p>
  
  <pre><code>"jest": {
      "collectCoverageFrom": [
        "**/*.{js,jsx}",
        "!**/index.{js,jsx}",
        "!**/*.{stories.js,demo.js}",
        "!**/build/**",
        "!**/mocks/**",
        "!**/coverage/**",
        "!**/node_modules/**"
      ],
      "snapshotSerializers": [
        "enzyme-to-json/serializer"
      ]
    }
  </code></pre>
  
  <p>&amp; the config in <code>sonar.properties</code>:</p>
  
  <pre><code>sonar.verbose=true
  sonar.sourceEncoding=UTF-8
  sonar.exclusions=**/*.spec.js,**/index.js,tests.webpack.js,webpack.config.babel.js,**/coverage/**/*.*
  sonar.test=Sources/client/web-lure/src
  sonar.test.inclusions=**/*.spec.js
  sonar.javascript.lcov.reportPath=Sources/client/coverage/lcov.info
  </code></pre>
  
  <p>In local, I do see <code>index.js</code> files be ignored But <code>SONAR</code> doesn't ignore these files.</p>