Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

205
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda