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

229
Views
Jest component test passes but gives open handles warning and does not exit - React/Jest

My component test passes but it also flags an open handles issue? I don't know where the issue could be as this only happens on the CI pipeline. The method that gets flagged is:

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

  ●  TCPWRAP

      54 |
      55 |     const getDataForApp = async (): Promise<any> => {
    > 56 |         const response = await axios.get(`${apiUrlForApp}/app/product`, {
         |                                      ^
      58 |         }).then(res => res.data);
      59 |

If the tests pass, then what could this be trying to tell me? as it stops jest from exiting anyway.

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