Files
ontime/apps/server
Claude b31839debe test(server): characterise decorator behaviour before migration
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
2026-09-02 15:37:08 +00:00
..
2026-03-08 16:22:12 +01:00
2026-03-08 16:22:12 +01:00
2026-03-08 16:22:12 +01:00
2026-08-28 12:04:02 +02:00
2026-03-08 16:22:12 +01:00
2026-03-08 16:22:12 +01:00
2026-03-08 16:22:12 +01:00