Versions 25 to 26
Lines 20–32 at 26 (were 20–31 at 25)
28−import { timeoutFor } from "../src/api.ts";
Lines 1300–1305 at 26 (were 1299–1325 at 25)
1302−
1303− it("sends one run, and takes each command as one quoted word", async () => {
1304− const { folders } = await project({ "a.txt": "a\n" }, "alice");
1305− const before = fake.runStarts.length;
1306− await main(["run", "--parallel", "npm test", "node bench.js"], {
1307− cwd: folders.alice!,
1308− env: ENV,
1309− write: () => {},
1310− writeErr: () => {},
1311− });
1312− const sent = fake.runStarts.slice(before);
1313− assert.equal(sent.length, 1);
1314− assert.ok(sent[0]!.cmd.endsWith(parallelScript(["npm test", "node bench.js"])), sent[0]!.cmd);
1315− const bad = await main(["run", "--parallel", "--", "npm", "test"], {
1316− cwd: folders.alice!,
1317− env: ENV,
1318− write: () => {},
1319− });
1320− assert.equal(bad.exit, 1);
1321− assert.match(bad.stderr, /--parallel takes each command as one quoted word/);
1322− });
13241304
Lines 2470–2530 at 26 (were 2490–2495 at 25)
24922472
2473+ it("reads a log longer than the server's page by following next, and starts below --before", async () => {
2474+ // A stand-in for the server's log: versions 0-449, newest first, at most LOG_PAGE a page, as version-log.ts pages.
2484+ const next = v >= 0 && versions.length > 0 ? versions[versions.length - 1]!.version : undefined;
2486+ res.end(JSON.stringify({ draft: null, version: 449, versions, ...(next !== undefined ? { next } : {}) }));
2491+ const api = new Api({ server, project: "p", agent: "a", token: "t" } as ConstructorParameters<typeof Api>[0]);
2498+ assert.deepEqual([some.versions[0]!.version, some.versions.at(-1)!.version, some.next], [299, 50, 50]);
2499+ assert.equal((await api.log({ draft: null })).versions.length, 50, "no -n: the server's own default, one page");
2505+
2506+ it("waits for a publish and a land as long as the server may work on them, past the base timeout", async () => {
2507+ assert.ok(PUBLISH_TIMEOUT_MS > 120_000, "longer than the server's 2 minutes for one request");
2510+ setTimeout(() => res.writeHead(200, { "content-type": "application/json" }).end('{"version": 7}'), 300);
2527+
24932528 it("lists a change by its message's first line, and an import's commit as a short hash (#43, Git Lessons)", () => {
24952530 "Issues' own Worker: the skeleton\n\nA long body\nover lines.\n\ngit ad107af03b56, Alex Rivera, 2026-10-07T14:00:00-05:00";
Lines 4121–4127 at 26 (were 4086–4092 at 25)
4089− /^shared is at version 2\.\nversion 2 by bob, .* UTC: bob: change b\n {2}1 file: b\.txt\nOlder versions: abso log -n 51\n$/,
4124+ /^shared is at version 2\.\nversion 2 by bob, .* UTC: bob: change b\n {2}1 file: b\.txt\nOlder versions: abso log --before 2\n$/,
40914126
- MCP
- compare on this site's /mcp
- CLI
- abso diff 25 26 client/test/client.test.ts --json
- JSON
- /christopher/abso-core/compare/25..26?file=client%2Ftest%2Fclient.test.ts&format=json