Skip to main content

Interface: ShadowRunsOptions

Defined in: packages/workflow-engine/src/testing/shadow-runs.ts:101

Input to shadowRuns.

Properties​

blobStore?​

readonly optional blobStore?: object

Defined in: packages/workflow-engine/src/testing/shadow-runs.ts:125

When supplied, a completed stage whose output was written to the blob store is fetched and validated against the candidate's output schema. Without it, only inline outputs are validated.

get()​

get(key): Promise<unknown>

Parameters​
key​

string

Returns​

Promise<unknown>


candidates​

readonly candidates: readonly Workflow<any, any, { }>[]

Defined in: packages/workflow-engine/src/testing/shadow-runs.ts:111

The build being proposed: one entry per workflow id it defines.


persistence​

readonly persistence: Pick<WorkflowPersistence, "getRun" | "getStagesByRun" | "getDefinition" | "supportsDefinitionVersioning">

Defined in: packages/workflow-engine/src/testing/shadow-runs.ts:103

Read surface over recorded runs. A real or in-memory adapter both work.


runIds​

readonly runIds: readonly string[]

Defined in: packages/workflow-engine/src/testing/shadow-runs.ts:113

The runs to replay.


stepLedger?​

readonly optional stepLedger?: Pick<StepLedger, "list">

Defined in: packages/workflow-engine/src/testing/shadow-runs.ts:119

When supplied, each stage's durable step ids are read and reported, and a removed stage that still holds step records raises STEP_LEDGER_ORPHANED.