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

valkyrjaio / valkyrja-ts / 30325155504
100%

Build:
DEFAULT BRANCH: 26.x
Ran 28 Jul 2026 03:10AM UTC
Jobs 1
Files 302
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

28 Jul 2026 03:09AM UTC coverage: 100.0%. Remained the same
30325155504

push

github

web-flow
[Http] Add request, response, and CLI input message-mapping fidelity tests (#91)

# Description

Adds framework-level **message-mapping fidelity** tests: proof that an
incoming
HTTP request, an outgoing HTTP response, and an incoming CLI command map
faithfully onto the framework's own objects — independent of routing.

This implements the architecture TODO item
["Framework tests — request & command mapping
fidelity"](https://github.com/valkyrjaio/architecture/pull/65)
for TypeScript, mirroring the PHP reference implementation

([valkyrja-php#932](https://github.com/valkyrjaio/valkyrja-php/pull/932))
1:1 in
structure and assertions.

A mapping defect — a dropped header, a wrong reason phrase, a mis-parsed
option —
is invisible to route-matching tests. The Java and TypeScript
starter-app
entry/worker end-to-end work surfaced exactly this class of bug, caught
far from
the source. These tests shift that coverage left: sooner, and closer to
where the
mapping actually lives.

The tests are **functional** (they exercise the factory → collection →
message
pipeline as a whole) rather than unit, and assert observable behavior
only,
through the public API. Nothing in `src/` changed — this is a test-only
PR.

## It already caught one

Two assertions in this PR failed against `26.x` as it stood, and were
fixed by its
sibling:

> **valkyrjaio/valkyrja-ts#90 — `[Http] Merge added header values
instead of overriding the existing header`** (merged)

`HeaderCollection::withAddedHeaders()` overrode an existing header
instead of
merging its values, so `Response::withCookie()` could only ever emit one
`Set-Cookie`. That fix is now on `26.x` and this branch is rebased onto
it, so
the suite is green: **1119 tests pass, 100% line and branch coverage**
(3508/3508 statements, 1587/1587 branches), with `typescript`,
`eslint-check`
and `prettier-check` green as well.

Sibling PRs:

- **TypeScript fix** — valkyrjaio/valkyrja-ts#90 (merged)
- **PHP reference** —
[valkyrja-php#932]... (continued)

1587 of 1587 branches covered (100.0%)

Branch coverage included in aggregate %.

3473 of 3473 relevant lines covered (100.0%)

29.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30325155504.1 28 Jul 2026 03:10AM UTC 302
100.0
GitHub Action Run
Source Files on build 30325155504
  • Tree
  • List 302
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30325155504
  • f70a64f3 on github
  • Prev Build on 26.x (#30324890379)
  • Next Build on 26.x (#30325727451)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc