Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
How to specify directory-based coverageThreshold in nycrc?

I want to run coverage check on my coverage-final.json using npx nyc report And I am able to do this, here is the output:

=============================== Coverage summary ===============================
Statements   : 66.67% ( 8/12 )
Branches     : 50% ( 2/4 )
Functions    : 100% ( 2/2 )
Lines        : 66.67% ( 8/12 )
================================================================================

Here you can see my .nycrc.json:

{
    "reporter": ["lcov", "text-summary"],
    "temp-dir": "coverage",
    "check-coverage": true,
    "branches": 10,
    "lines": 10,
    "functions": 10,
    "statements": 10
}

All seems to be ok, but I can't find any way to specify coverage thresholds for specific directories in my .nycrc.json. I want something similar to what jest already has in order to apply different threshold values for different directories. Does someone have a solution to my problem?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!