8dac5d5790
- Added replay parsing and a reducer CLI for op logs and reduced outputs. - Added chunk-based `reduceFailingOperations` to shrink failure traces while preserving repro cases. - Added a dedicated `StressRenderScheduler` with immediate and scheduled callback queues. - Added checkpoint failure dumps to record operation log paths and replay artifacts.
13 lines
436 B
TypeScript
13 lines
436 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { reduceFailingOperations } from "./render-stress-reducer";
|
|
|
|
describe("render stress reducer", () => {
|
|
it("shrinks a failing prefix while preserving failure", async () => {
|
|
const reduced = await reduceFailingOperations(
|
|
["a", "b", "c", "d", "e"],
|
|
async candidate => candidate.includes("b") && candidate.includes("d"),
|
|
);
|
|
expect(reduced).toEqual(["b", "d"]);
|
|
});
|
|
});
|