Skip to content

fixtures

const fixtures: object

Defined in: console-sdk/src/testing/fixtures/scripted.ts:252

The /testing fixture builders (SDK_PLAN.md §3.11.2):

  • scripted(phases) — phase-scripted synthetic session, executed through the pure firmware tick reducer (row 80);
  • rowing152s() — the real 152 s rowing capture, lazy-loaded so the ~60 kB JSON stays out of bundles that don’t call it (row 81);
  • fromRecording(frames) — bring your own capture (record via diagnostics, replay here); frames replay on their receivedAt cadence.

fromRecording(frames): ConsoleScript

Replay your own recorded frames on their original cadence.

readonly LiveMetrics[]

ConsoleScript

rowing152s(): Promise<ConsoleScript>

Real 152 s rowing capture (lazy-loaded on first call).

Promise<ConsoleScript>

scripted(phases): ConsoleScript

Phase-scripted synthetic session (the firmware reducer drives frames).

readonly ScriptPhase[]

ConsoleScript

transport.console('400123').run(
fixtures.scripted([{ kind: 'steady', pace500Seconds: 122, seconds: 120 }]),
);