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

161
Visualizações
stop npm test clear output

I am running npm test on a react project, that runs unit tests using jest and react testing library. The log of tests (including console log lines that I added to debug) is printed and then deleted after running the tests (probably being deleted after each test or at some limit). finally a summary of the run is shown but it does not help understand the issue.

how can I stop my npm test output being deleted?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

nevermind, it was the default terminal (iterm) scrollback buffer limit, which is 1000 lines. apparently, after a fresh setup, the first time I hit the limit was the tests.

here is how to make it unlimited.

enter image description here

about 4 years ago · Juan Pablo Isaza Relatório

0

You can also pipe the output of the terminal to a file eg

npm run test >> mytest.txt

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