fix: hacer beforeEach asíncrono en tests de servidor para permitir await import

Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
pull/1/head
borja 2 months ago
parent a4ee9155e5
commit 1846491c07

@ -524,7 +524,7 @@ describe('WebhookServer', () => {
let mockEnsureUserExists: any; let mockEnsureUserExists: any;
let consoleSpy: any; let consoleSpy: any;
beforeEach(() => { beforeEach(async () => {
mockEnsureUserExists = mock(() => '1234567890'); mockEnsureUserExists = mock(() => '1234567890');
// Mock the function in the module // Mock the function in the module
const dbModule = await import('../../src/db'); const dbModule = await import('../../src/db');

Loading…
Cancel
Save