From 284838279df8f8bf6f14c4a8fdbb759673d203b2 Mon Sep 17 00:00:00 2001 From: Dries Augustyns Date: Thu, 2 Apr 2026 07:56:54 +0200 Subject: [PATCH] test: Mock DNS lookup in integration tests for WorkflowExecutionService --- .../__tests__/WorkflowExecutionService.integration.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/api/src/services/__tests__/WorkflowExecutionService.integration.test.ts b/apps/api/src/services/__tests__/WorkflowExecutionService.integration.test.ts index 837e928..5caedc1 100644 --- a/apps/api/src/services/__tests__/WorkflowExecutionService.integration.test.ts +++ b/apps/api/src/services/__tests__/WorkflowExecutionService.integration.test.ts @@ -4,6 +4,12 @@ import {toPrismaJson} from '@plunk/types'; import {WorkflowExecutionService} from '../WorkflowExecutionService'; import {factories, getPrismaClient} from '../../../../../test/helpers'; +vi.mock('node:dns/promises', () => ({ + default: { + lookup: vi.fn(async () => ({address: '1.2.3.4', family: 4})), + }, +})); + /** * Integration Tests: Workflow Execution Engine *