* Creates a minimal ResolutionContext for testing. * The EnvResolver only uses context.executionContext.environmentVariables.
(environmentVariables: Record<string, string>)
| 7 | * The EnvResolver only uses context.executionContext.environmentVariables. |
| 8 | */ |
| 9 | function createTestContext(environmentVariables: Record<string, string>): ResolutionContext { |
| 10 | return { |
| 11 | executionContext: { environmentVariables }, |
| 12 | executionState: {}, |
| 13 | currentNodeId: 'test-node', |
| 14 | } as ResolutionContext |
| 15 | } |
| 16 | |
| 17 | describe('EnvResolver', () => { |
| 18 | describe('canResolve', () => { |