Estoy tratando de usar Instanbul ignore al lado para ignorar algunas líneas en mi cobertura de prueba, pero no funciona dentro de un JSX o una matriz anidada. ¿Alguien tiene una idea de lo que puedo hacer?
<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'] : []), ];Pude ignorar la matriz anidada colocando el estambul sobre la definición constante.
Lo mismo con el JSX, acabo de colocar el estambul encima del retorno.