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