Documentation Index
Fetch the complete documentation index at: https://docs.qawolf.com/llms.txt
Use this file to discover all available pages before exploring further.
@qawolf/flows/cli is the smallest platform entry point in @qawolf/flows. CLI flows run in Node and have no browser or mobile driver. Use them for work that needs to coordinate with other flows in a run but doesn’t require UI interaction — data setup, teardown, sending notifications, or processing files.
Because CLI flows run in Node, you can use the Node standard library directly for file, process, and network work:
Primary Exports
flow(...)expecttestContextDependencies
Target Model
The current target type is:Flow Callback Context
The callback receives the CLI flow context. Public callback parameters:inputs— values published by an upstream flow in the same runsetOutput(...)— publishes values for downstream flows to readtest(...)— wraps named sub-steps that appear in your results
page, driver, or any other launch object.
test(...) can be omitted for simple flows where grouping steps into named sub-steps doesn’t add value. For most flows, wrapping steps in test(...) is recommended — the label appears in your results and makes failures easier to locate.inputs and setOutput to coordinate with other flows in a run.
testContextDependencies
testContextDependencies is exported for runner and tooling integration. Flow authors should usually use the public callback parameters above instead of depending on the raw runner dependency list.
expect
Like the other platform entry points, the exported expect value is a type-safe stub in package code and is replaced by the runner when the flow executes.
Example: