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

nats-io / nats.js / 13209732514
86%

Build:
DEFAULT BRANCH: main
Ran 07 Feb 2025 11:30PM UTC
Jobs 5
Files 63
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

07 Feb 2025 11:25PM UTC coverage: 57.703% (-25.0%) from 82.694%
13209732514

push

github

web-flow
Convert enums to constant objects with `as const` for better type safety (#204)

* Convert enums to constant objects with `as const` for better type safety

Replaced TypeScript `enum` declarations with constant objects using `as const`. This change preserves the same api, but removes enums, and allows using the values directly without importing the constant. Enums are problematic because they require transpilation, with this change erasure is possible.

Signed-off-by: Alberto Ricart <alberto@synadia.com>

* fix tests

Signed-off-by: Alberto Ricart <alberto@synadia.com>

---------

Signed-off-by: Alberto Ricart <alberto@synadia.com>

868 of 1542 branches covered (56.29%)

Branch coverage included in aggregate %.

227 of 228 new or added lines in 12 files covered. (99.56%)

58 existing lines in 4 files now uncovered.

6642 of 11473 relevant lines covered (57.89%)

24643.41 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
50.66
-7.72% core/src/headers.ts

Uncovered Existing Lines

Lines Coverage ∆ File
6
66.67
4.17% transport-deno/src/connect.ts
10
50.63
11.85% core/src/options.ts
13
28.32
-12.0% core/src/errors.ts
29
61.06
-7.11% core/src/parser.ts
Subprojects
ID Flag name Job ID Ran Files Coverage
1 obj 13209732514.1 07 Feb 2025 11:30PM UTC 51
41.83
GitHub Action Run
2 services 13209732514.2 07 Feb 2025 11:30PM UTC 39
51.31
GitHub Action Run
3 kv 13209732514.3 07 Feb 2025 11:30PM UTC 53
47.25
GitHub Action Run
4 transport-deno 13209732514.4 07 Feb 2025 11:30PM UTC 34
9.46
GitHub Action Run
5 transport-node 13209732514.5 07 Feb 2025 11:31PM UTC 3
85.02
GitHub Action Run
Source Files on build 13209732514
  • Tree
  • List 63
  • Changed 14
  • Source Changed 12
  • Coverage Changed 41
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13209732514
  • 747c3e58 on github
  • Prev Build on main (#13159645374)
  • Next Build on main (#13334532423)
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