Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

131
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.

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs