fixtures
constfixtures: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 theirreceivedAtcadence.
Type Declaration
Section titled “Type Declaration”fromRecording()
Section titled “fromRecording()”fromRecording(
frames):ConsoleScript
Replay your own recorded frames on their original cadence.
Parameters
Section titled “Parameters”frames
Section titled “frames”readonly LiveMetrics[]
Returns
Section titled “Returns”rowing152s()
Section titled “rowing152s()”rowing152s():
Promise<ConsoleScript>
Real 152 s rowing capture (lazy-loaded on first call).
Returns
Section titled “Returns”Promise<ConsoleScript>
scripted()
Section titled “scripted()”scripted(
phases):ConsoleScript
Phase-scripted synthetic session (the firmware reducer drives frames).
Parameters
Section titled “Parameters”phases
Section titled “phases”readonly ScriptPhase[]
Returns
Section titled “Returns”Example
Section titled “Example”transport.console('400123').run( fixtures.scripted([{ kind: 'steady', pace500Seconds: 122, seconds: 120 }]),);