Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

230
Vistas
Why does Jest sometimes prints "pretty" error messages with line pointers, and sometimes not?

I have jest 27 installed, and I see that sometimes I get pretty error messages like this (with visual pointer to the failing line): enter image description here

And sometimes it prints the errors like this (plain error, without pointer): enter image description here

I am trying to understand why it happens, can someone help me with that?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Ok, after doing some investigations, it seems like the difference is if the error happens in node_modules or not. If the error is thrown within the project's root, jest will print a pretty message with a pointer to the line that caused the error. But if the error happens from within the node_modules folder, Jest will print the error message along with the stack trace, without any visual pointers.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda