Skip to content

feat: Enable use of WorkflowCombineTesting without specifying a concrete Publisher type#387

Open
amorde wants to merge 1 commit intomainfrom
amorde/combine-testing-expect-without-publisher-type
Open

feat: Enable use of WorkflowCombineTesting without specifying a concrete Publisher type#387
amorde wants to merge 1 commit intomainfrom
amorde/combine-testing-expect-without-publisher-type

Conversation

@amorde
Copy link
Copy Markdown
Member

@amorde amorde commented Apr 1, 2026

Changes

  • Add expectPublisher(producingOutput:key:) API that is generic only over the output of the publisher rather
  • Update PublisherWorkflow to only be generic over the output rather than the Publisher type

Rationale

The current API shape requires that tests pass in a concrete Publisher type. This can be quite tedious depending on the context, resulting in having to pass in types like Publishers.Map<AnyPublisher<Bool, Never>, AnyWorkflowAction<SomeWorkflow>>>.

This differs from WorkflowReactiveSwift, for example, which has a workflow that is only generic over the output and has an expect API that only requires providing the output type

Checklist

  • Unit Tests
  • UI Tests
  • Snapshot Tests (iOS only)
  • I have made corresponding changes to the documentation

@amorde amorde requested a review from a team as a code owner April 1, 2026 01:08
@amorde amorde force-pushed the amorde/combine-testing-expect-without-publisher-type branch from ad4a1ee to d71f5ee Compare April 1, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant