We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to test my TS project but I get 0% of coverage in every line. This is the script in package.json file:
package.json
"coverage": "tsc && nyc mocha -r ts-node/register/transpile-only -r dotenv/config -r source-map-support/register --recursive 'tests/**/*.unit.test.ts'"
And this is the .nycrc file:
.nycrc
{ "all": true, "check-coverage": true, "reporter": ["text-summary", "lcov"] }
This is the output I get:
... 1 passing (3s) ERROR: Coverage for lines (0%) does not meet global threshold (90%) =============================== Coverage summary =============================== Statements : 0% ( 0/700 ) Branches : 0% ( 0/303 ) Functions : 0% ( 0/128 ) Lines : 0% ( 0/676 ) ================================================================================
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to test my TS project but I get 0% of coverage in every line. This is the script in
package.json
file:And this is the
.nycrc
file:This is the output I get:
The text was updated successfully, but these errors were encountered: