Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

108
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!