test: Mock DNS lookup in integration tests for WorkflowExecutionService

This commit is contained in:
Dries Augustyns
2026-04-02 07:56:54 +02:00
parent 2c5a71518d
commit 284838279d
@@ -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
*