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

nestjs / nest / 9250dba8-55e7-4609-9bbe-e5a9e3a076a6
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: renovate/typescript-eslint-monorepo
DEFAULT BRANCH: master
Ran 10 Apr 2026 02:50AM UTC
Jobs 1
Files 364
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

10 Apr 2026 02:42AM UTC coverage: 89.885% (-0.02%) from 89.907%
9250dba8-55e7-4609-9bbe-e5a9e3a076a6

Pull #16753

circleci

jkalberer
fix(core): defer sse writehead until first message

When using @Sse() endpoints with ValidationPipe, pipe errors
(e.g. BadRequestException) were returned with HTTP 200 because
SseStream.pipe() eagerly called writeHead(200) before the
Observable had a chance to error. Exception filters could not
override the status code.

This PR defers header commitment in SseStream until the first
message is written via _transform(). If the Observable errors
before any data is emitted, the error propagates through the
exception filter which can now set the correct HTTP status.

- SseStream: lazy writeHead via commitHeaders()
- SseStream: LazyOrValue<T> for statusCode/additionalHeaders
- RouterResponseController: sse() Promise wrapper with
  catchError re-throw when headers uncommitted
- RouterExecutionContext: lazy getters for status/headers
- Integration tests for Express and Fastify (400 on pipe error)
Pull Request #16753: fix(core): defer sse writehead until first message

2328 of 2872 branches covered (81.06%)

49 of 56 new or added lines in 3 files covered. (87.5%)

1 existing line in 1 file now uncovered.

7633 of 8492 relevant lines covered (89.88%)

21.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
88.89
-7.11% packages/core/router/router-response-controller.ts

Coverage Regressions

Lines Coverage ∆ File
1
97.96
0.9% packages/core/router/sse-stream.ts
Jobs
ID Job ID Ran Files Coverage
1 9250dba8-55e7-4609-9bbe-e5a9e3a076a6.1 10 Apr 2026 02:50AM UTC 364
89.88
Source Files on build 9250dba8-55e7-4609-9bbe-e5a9e3a076a6
  • Tree
  • List 364
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #9250DBA8...
  • Pull Request #16753
  • PR Base - master (#6E5D8DD6...)
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

© 2026 Coveralls, Inc