Skip to content

abso-core

Public
Check passed

Versions 292 to 293

Compare

+23 −0 in 2 places
Lines 26–32 at 293 (were 26–31 at 292)
2626import { clientVersion, headCommit } from "../src/client-version.ts";
2727import {
2828 AVCS_MOD,
29+ hookCommand,
2930 installerCommand,
3031 installMod,
3132 keptModCommit,
Lines 115–142 at 293 (were 114–119 at 292)
114115 );
115116 });
116117
118+ it("stamps the command that runs this client's abso hook, where stamp.ts has a HOOK_COMMAND line", () => {
119+ const spec = source({
120+ "hooks/stamp.ts":
121+ "export const STAMP: string | undefined = undefined\nexport const HOOK_COMMAND: readonly string[] | undefined = undefined\n",
122+ });
123+ const target = join(temp(), "avcs");
124+ installMod(spec, {
125+ target,
126+ check: pass,
127+ commit: "702c616",
128+ hookCommand: ["C:\\node.exe", "C:\\abso\\client\\abso.ts", "hook"],
129+ });
130+ assert.equal(
131+ read(target, "hooks/stamp.ts"),
132+ "export const STAMP: string | undefined = '0.1.0+702c616'\n" +
133+ 'export const HOOK_COMMAND: readonly string[] | undefined = ["C:\\\\node.exe","C:\\\\abso\\\\client\\\\abso.ts","hook"]\n',
134+ );
135+ // By default, this checkout's own: the node running it and client/abso.ts.
136+ assert.deepEqual(hookCommand().slice(0, 1), [process.execPath]);
137+ assert.match(hookCommand()[1]!, /client[\\/]abso\.ts$/);
138+ });
117140 it("moves the files in by rename, what the hook imports first and plugin.json last", () => {
118141 const spec = source();
119142 const target = join(temp(), "avcs");
MCP
compare on this site's /mcp
CLI
abso diff 292 293 client/test/install.test.ts --json
JSON
/christopher/abso-core/compare/292..293?file=client%2Ftest%2Finstall.test.ts&format=json