From 1846491c07f541be05d29956a9542ababf09be87 Mon Sep 17 00:00:00 2001 From: borja Date: Fri, 5 Sep 2025 11:35:29 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20hacer=20beforeEach=20as=C3=ADncrono=20en?= =?UTF-8?q?=20tests=20de=20servidor=20para=20permitir=20await=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) --- tests/unit/server.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/server.test.ts b/tests/unit/server.test.ts index 85e48c9..40bf21a 100644 --- a/tests/unit/server.test.ts +++ b/tests/unit/server.test.ts @@ -524,7 +524,7 @@ describe('WebhookServer', () => { let mockEnsureUserExists: any; let consoleSpy: any; - beforeEach(() => { + beforeEach(async () => { mockEnsureUserExists = mock(() => '1234567890'); // Mock the function in the module const dbModule = await import('../../src/db');