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

reactivando / use-pubsub-js / 28139058195
100%
master: 80%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 25 Jun 2026 12:41AM UTC
Jobs 1
Files 6
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

25 Jun 2026 12:40AM UTC coverage: 100.0%. Remained the same
28139058195

push

github

web-flow
test(pubsub): cover on() cleanup with no signal (mutation-audit finding) (#94)

Ran a one-off Stryker mutation audit (87% score, 224 killed) to find tests that
pass without actually catching bugs. Most survivors are equivalent mutants —
empty-channel pruning (memory-only, unobservable) and React dependency-array
mutations (the known near-unkillable class). One was a real robustness gap:

  on(token, handler, {})            // options present, signal undefined
  // cleanup did `options?.signal?.removeEventListener` — dropping the second
  // `?.` would throw; no test exercised options-without-signal.

Added tests for on() with options-but-no-signal and on() with no options at all
(cleanup must not throw). Mutation-verified: the new test fails if the `?.` is
dropped. The Stryker tooling was used as a one-off audit and not added as a
permanent dependency (kept the lib's devDeps lean); findings recorded in memory.

148 → 150 tests, 100% coverage, lint clean.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

32 of 32 branches covered (100.0%)

Branch coverage included in aggregate %.

214 of 214 relevant lines covered (100.0%)

182.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28139058195.1 25 Jun 2026 12:41AM UTC 6
100.0
GitHub Action Run
Source Files on build 28139058195
  • Tree
  • List 6
  • 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 #28139058195
  • b2e25908 on github
  • Prev Build on main (#28137965653)
  • Next Build on main (#28140460725)
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