Remote / foldkit-remote/testing

FromReportOptions

interface · packages/remote/src/scenario.ts:436

interface FromReportOptions<Principal> {
  readonly writes: ReadonlyArray<AnyMutation & WriteEntry>
  readonly starts: ReadonlyArray<{
    readonly entity: AnyEntity
    readonly row: Row
  }>
  readonly principal: Option.Option<Principal>
  readonly now: number
}

What fromReport is given beside the report.

Members

FromReportOptions.writes

property · packages/remote/src/scenario.ts:438

readonly writes: ReadonlyArray<AnyMutation & WriteEntry>

The declared writes the report was made from, by their mutations.

FromReportOptions.starts

property · packages/remote/src/scenario.ts:440

readonly starts: ReadonlyArray<{
  readonly entity: AnyEntity
  readonly row: Row
}>

Encoded rows to start from: one per state or refusal the report names must fit one.

FromReportOptions.principal

property · packages/remote/src/scenario.ts:441

readonly principal: Option.Option<Principal>

FromReportOptions.now

property · packages/remote/src/scenario.ts:442

readonly now: number