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

nats-io / nats.js / 13209732514 / 1 – obj
86%
main: 86%

Build:
DEFAULT BRANCH: main
Ran 07 Feb 2025 11:30PM UTC
Files 51
Run time 1s
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: 41.83% (+0.5%) from 41.365%
obj – 13209732514.1

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>

326 of 695 branches covered (46.91%)

Branch coverage included in aggregate %.

3867 of 9329 relevant lines covered (41.45%)

26509.73 hits per line

Source Files on job obj - 13209732514.1
  • Tree
  • List 51
  • Changed 14
  • Source Changed 9
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 13209732514
  • 747c3e58 on github
  • Prev Job for on main (#13159645374.2)
  • Next Job for on main (#13334532423.5)
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