Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

283
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda