Versions 41 to 318
new file, 129 lines
3+
8+
10+ it("matches a one-file record query after repeated writers, readers, and delete/recreate history", () => {
14+ repo.edit({ edits: [{ file: "src.txt", start: 1, end: 1, lines: [text], mode: "after" }] }, base);
22+ const recreation = repo.edit({ edits: [{ file: "recreated.txt", old: "", new: lines("fresh") }] });
23+
28+ assert.deepEqual(repo.graph.closureOf(recreation.deps), repo.graph.closureOf(["a0", deletion.id]));
35+
47+ const expectedDeps = [writerOne.id, writerTwo.id, readerOne.id, readerTwo.id, attrOne.id, attrTwo.id];
49+ assert.deepEqual(repo.graph.closureOf(liveAtom.deps), repo.graph.closureOf(["a0", ...expectedDeps]));
61+
69+ edits: input.edits.map((edit, index) => (index === 1 ? { ...edit, lines: ["different"] } : edit)),
74+
81+ const visible = (view: View, path: string) => view.lines(path).map((line) => [line.id, line.text, line.atom]);
95+ liveView.sequence("recreated.txt").map((line) => [line.id, line.text, line.visible, line.deletedBy]),
101+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 41 318 src/engine/test/record-query-contract.test.ts --json
- JSON
- /christopher/abso-core/compare/41..318?file=src%2Fengine%2Ftest%2Frecord-query-contract.test.ts&format=json