(runDir: string, window: TimelineWindow)
| 33 | |
| 34 | /** Record that `window`'s recording clock starts now. */ |
| 35 | export const markRecordingStart = (runDir: string, window: TimelineWindow): void => { |
| 36 | const timeline = read(runDir); |
| 37 | write(runDir, { |
| 38 | ...timeline, |
| 39 | anchors: { ...timeline.anchors, [window]: Date.now() }, |
| 40 | }); |
| 41 | }; |
| 42 | |
| 43 | /** Record that the scenario is acting on `window` (deduped per run). */ |
| 44 | export const markFocus = (runDir: string, window: TimelineWindow): void => { |
no test coverage detected