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

101
Vistas
Generate code coverage report for Express application in Jest

I need to generate a Jest coverage report for the ExpressJS server application that supports HTTP and WebSocket connections. I have a file with tests: server.test.js that imports a few classes for doing HTTP/WebSocket requests and sends those requests to the Express app. Whenever I run jest --coverage path/to/the/dir/with/tests I get only the coverage report for those files that are used by server.test.js (the ones that I import into the test file). But how can I also generate the coverage report for all the code which gets executed on the server when requests sent from server.test.js hit the respective endpoints?

A small note is that the server is on the same machine, in the directory next to the one with tests.

Any help will be appreciated

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