Open
Description
ScenarioOutput is a sub-class of a scenario Step
that offers logging capability for a scenario.
In practice ScenarioOutput
has proven to be a bit unwieldy. It puts a lot of distance between logs and functionality, and the output steps obfuscate what's actually happening in a list of scenario steps.
ScenarioOutput
should be marked as deprecated, and the shared logger should be copied into to the Step
sub-classes and provided as an argument to step functions, e.g.
new ScenarioAction('my-action', (state, logger) => {});
new ScenarioInput('my-input', (state, logger) => {});