Skip to content

Instantly share code, notes, and snippets.

@crowjdh
Created October 27, 2019 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crowjdh/7e2d3b89fc89a380a73fdadb69580691 to your computer and use it in GitHub Desktop.
Save crowjdh/7e2d3b89fc89a380a73fdadb69580691 to your computer and use it in GitHub Desktop.
Things to try when IstanbulJS is not working(zero coverage)

Things to try when it's not working(npm run coverage):

  • Try removing node_modules and .nyc_output directory and run npm install
  • Use different version of binaries
    • NodeJS version: v12.13.0
    • NPM version: 6.12.0
    • NPX version: 6.12.0
  • Add --exit option to MochaJS
  • Add cache option to .nycrc file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment