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

palcarazm / component-lifecycle / 24336076666
100%

Build:
DEFAULT BRANCH: develop
Ran 13 Apr 2026 09:30AM UTC
Jobs 2
Files 2
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

13 Apr 2026 09:29AM UTC coverage: 100.0%. Remained the same
24336076666

push

github

palcarazm
feat: emit transition-cancelled event when lifecycle hooks cancel transitions

Implement cancellable lifecycle transitions that allow async hooks to
reject state changes. When doInit(), doAttach(), doDispose(), or doDestroy()
return { cancelled: true }, the component remains in its current state and
emits a transition-cancelled event with from/to states and optional reason.

Major changes:
- Add TransitionEventDetails and TransitionEventMap types for transition events
- Add BaseEventMap as union of LifecycleEventMap and TransitionEventMap
- Refactor transitionTo() into executeTransition() helper to eliminate duplication
- Emit transition-cancelled event with component, from, to, reason payload
- Add 7 comprehensive tests covering all cancellation scenarios
- Update documentation to explain transition-cancelled event behavior
- Enhance DummyComponent test helper to support optional cancellation reasons

Implements #10

14 of 14 branches covered (100.0%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 1 file covered. (100.0%)

55 of 55 relevant lines covered (100.0%)

83.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 coverage-report-24.x - 24336076666.1 13 Apr 2026 09:30AM UTC 4
100.0
GitHub Action Run
2 coverage-report-22.x - 24336076666.2 13 Apr 2026 09:30AM UTC 4
100.0
GitHub Action Run
Source Files on build 24336076666
  • Tree
  • List 2
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24336076666
  • e931a35e on github
  • Prev Build on develop (#24313597690)
  • Next Build on develop (#24337691215)
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