title: Jest coverage only for local development
body: <p>I am trying to figure out how to turn coverage off for my Jenkins builds but leave it on for local dev. Basically I want to still get Jenkins to do my tests but I don't need or want the coverage report that &quot;collectCoverage: true&quot; gives me, I only need that for local development.</p>
  <p>My jest.config file looks like this.</p>
  <pre class="lang-js prettyprint-override"><code>module.exports = {
   setupFiles: ['&lt;rootDir&gt;/jest.setup.js'], 
   moduleNameMapper: {
      '^@/(.*)$': '&lt;rootDir&gt;/$1', 
      '^~/(.*)$': '&lt;rootDir&gt;/$1', 
      '^vue$': 'vue/dist/vue.common.js'
      },
   moduleFileExtensions: ['js', 'vue', 'json'], 
   testPathIgnorePatterns: ['/dist/', '/node_modules/', '/salmon'],
   transform: {
      '^.+\\.js$': '&lt;rootDir&gt;/node_modules/babel-jest',
      '^.+\\.(vue)$': '&lt;rootDir&gt;/node_modules/vue-jest'
      },
   transformIgnorePatterns: ['&lt;rootDir&gt;/node_modules/(?!vuetify)'], 
   collectCoverage: true, 
   snapshotSerializers: ['&lt;rootDir&gt;/node_modules/jest-serializer-vue'],
   collectCoverageFrom: [
           '&lt;rootDir&gt;/api/**/*.js', 
           '&lt;rootDir&gt;/components/**/*.vue', 
           '&lt;rootDir&gt;/pages/**/*.vue', 
           '&lt;rootDir&gt;/store/**/*.js',
          ], 
    verbose: true
  }
  </code></pre>