Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

154
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!