(
sched: ReturnType<typeof sparseSchedule>,
stepIndex: number,
)
| 296 | describe("computeEffectivePatch", () => { |
| 297 | // Returns the accumulated patch for TARGET_ID at the given stepIndex, as a plain object. |
| 298 | function eff( |
| 299 | sched: ReturnType<typeof sparseSchedule>, |
| 300 | stepIndex: number, |
| 301 | ): Record<string, unknown> { |
| 302 | const map = computeEffectivePatch(sched, stepIndex); |
| 303 | const { ruleId: _, ...fields } = map.get(TARGET_ID) ?? {}; |
| 304 | return fields as Record<string, unknown>; |
| 305 | } |
| 306 | |
| 307 | it("stepIndex=-1 returns empty map (no steps applied yet)", () => { |
| 308 | const sched = sparseSchedule([ |
no test coverage detected