Skip to content

Support optional step inputs #41

@brandonvin

Description

@brandonvin

greenlight.step/lookup does not allow any inputs to be omitted, so the typical workaround is to do something like the following, which hurts test understandability (step depends on more than just its :inputs) and increases test boilerplate.

#:greenlight.step
{:inputs {:some-required-data (step/lookup :some-required-data)}
 :test (fn [{:keys [some-required-data] :as ctx}]
         (let [some-optional-data (:some-optional-data ctx)]
		   ,,,))}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions