Skip to content
New issue

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

Getting 0 lines covered #713

Open
dsimog01 opened this issue Feb 14, 2023 · 0 comments
Open

Getting 0 lines covered #713

dsimog01 opened this issue Feb 14, 2023 · 0 comments

Comments

@dsimog01
Copy link

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:

"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:

{
  "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 )
================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant