From 51a623450d7e7ce953734886b399ff365e824ed2 Mon Sep 17 00:00:00 2001 From: borja Date: Wed, 8 Oct 2025 14:16:49 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20inyectar=20GroupSyncService.dbInstance?= =?UTF-8?q?=20y=20limpiar=20cach=C3=A9=20en=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: aider (openrouter/openai/gpt-5) --- tests/unit/services/command.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/services/command.test.ts b/tests/unit/services/command.test.ts index 5ddb92d..8e37856 100644 --- a/tests/unit/services/command.test.ts +++ b/tests/unit/services/command.test.ts @@ -17,6 +17,8 @@ beforeEach(() => { initializeDatabase(memDb); (CommandService as any).dbInstance = memDb; (TaskService as any).dbInstance = memDb; + (GroupSyncService as any).dbInstance = memDb; + GroupSyncService.activeGroupsCache.clear(); }); test('listar grupo por defecto con /t ver en grupo e incluir “… y X más”', async () => {