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

282
Vistas
Istanbul ignore next not working inside JSX and nested arrays

I'm trying to use instanbul ignore next to ignore some lines in my test coverage but it dont work inside a JSX or nested array. Anyone have an idea of what I can do?

          <Text
            as="span" /* istanbul ignore next */ - IT WONT WORK HERE
            variant={isMobile ? 'medParagraph' : 'smParagraph'} //im trying to ignore this line
            sx={{
              fontWeight: selected ? 'bold' : undefined,
            }}>
            {page}
          </Text>

  const itemList = [
    ...(siblingsEnd < count - boundaryCount - 1
      ? ['end-ellipsis']
      : count - boundaryCount > boundaryCount
      ? [count - boundaryCount]
      : []),
    /* istanbul ignore next */ - WONT WORK HERE AS WELL
    ...endPages, //im trying to ignore this line
    ...(hideNextButton ? [] : ['next']),
    ...(showLastButton ? ['last'] : []),
  ];
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I was able to ignore the nested array placing the istanbul above the const definition.

Same with the JSX, I just placed the istanbul above the return.

about 4 years ago · Juan Pablo Isaza Denunciar
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