• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

expressjs / compression / 14498812440
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6.0.0
DEFAULT BRANCH: master
Ran 16 Apr 2025 05:31PM UTC
Jobs 1
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Apr 2025 05:28PM UTC coverage: 100.0%. Remained the same
14498812440

push

github

web-flow
Do not swallow calls to `res.end()` (#188)

* Add tests demonstrating scenarios under which the original res.end does not get called

* Ensure stream gets closed and response gets ended when it is finished

* Only call the original res.end() a single time

* Avoid using the on-finished package

* Use finished() helper from node:stream

* Import finished() helper directly from node:stream

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>

* Use finished() helper directly instead of nodeStream.finished()

* Adjust stream pause / resume logic instead of messing with res.end() calls directly

* Revert addition of endOnce() wrapper

* Add unit test around one more alternate sequence of events that seems reasonable to test in addition to the other ones

* Add test around avoiding 'write after end' errors

* Avoid writing into the response after it is finished

* Add a comment explaining why the compression stream gets resumed when the response finishes

* chore: use isFinished of on-finished

---------

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>

8 of 8 new or added lines in 1 file covered. (100.0%)

115 of 115 relevant lines covered (100.0%)

770.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14498812440.1 16 Apr 2025 05:31PM UTC 1
100.0
GitHub Action Run
Source Files on build 14498812440
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14498812440
  • fbb806c8 on github
  • Prev Build on v2 (#14449412116)
  • Next Build on v2 (#14499544840)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc