Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

130
Vistas
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
Responde la pregunta
Encuentra empleos remotos