mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 16:49:41 +00:00
b31839debe
The two TypeScript legacy decorators in the server package (`@broadcastReturn` on AuxTimerService, `@broadcastResult` on RuntimeService) drive all runtime state broadcasting but had no test coverage, so a migration to standard decorators would have been unverifiable. Add characterisation tests that lock in the current behaviour: - AuxTimerService: emit key derived from the last argument, payload equal to the return value, one emit per public call, and the undecorated interval update emitting a combined patch instead. - RuntimeService: which methods broadcast and which do not, return value forwarding, batch contents for each kind of state change, and the restore point side effect. No production code changes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JTztQittreLfXz8cgUeeMs