feat: add e2e tests for library watcher

This commit is contained in:
Jonathan Jogenfors
2026-03-24 11:06:45 +01:00
parent ce9b32a61a
commit 05b07ca233
6 changed files with 252 additions and 13 deletions
@@ -114,6 +114,16 @@ export class NotificationService extends BaseService {
this.websocketRepository.serverSend('ConfigUpdate', { oldConfig, newConfig });
}
@OnEvent({ name: 'LibraryWatchEnabled' })
onLibraryWatchEnabled({ id }: ArgOf<'LibraryWatchEnabled'>) {
this.websocketRepository.clientBroadcast('on_library_watch_enabled', { libraryId: id });
}
@OnEvent({ name: 'LibraryWatchFired' })
onLibraryWatchFired(event: ArgOf<'LibraryWatchFired'>) {
this.websocketRepository.clientBroadcast('on_library_watch_fired', event);
}
@OnEvent({ name: 'AppRestart' })
onAppRestart(state: ArgOf<'AppRestart'>) {
this.websocketRepository.clientBroadcast('AppRestartV1', {