Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

102
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda