(overrides: Partial<ExecutionContext> = {})
| 109 | |
| 110 | describe('maybeWriteOutputToFile', () => { |
| 111 | function buildContext(overrides: Partial<ExecutionContext> = {}): ExecutionContext { |
| 112 | return { |
| 113 | userId: 'user-1', |
| 114 | workflowId: 'wf-1', |
| 115 | workspaceId: 'workspace-1', |
| 116 | userPermission: 'write', |
| 117 | ...overrides, |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | beforeEach(() => { |
| 122 | vi.clearAllMocks() |