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');