Generates the input event for this step based on previous step's output. Receives null on the first step or an array of ArvoEvents from the previous step.
OptionalexpectedError?: neverOptionalexpectedEvents?: ((event: ArvoEvent[]) => boolean) | ((event: ArvoEvent[]) => Promise<boolean>)Optional validator for output events when the handler executes successfully.
OptionalexpectedError?: ((error: Error) => boolean) | ((error: Error) => Promise<boolean>)Optional validator for errors when the handler is expected to throw.
OptionalexpectedEvents?: never
Defines a single test step in an event handler test sequence.
Each step receives the output events from the previous step, generates a new input event, and validates either the output events or expected errors. Steps are executed sequentially, allowing you to test complex event-driven workflows.