test: align stable release expectations

This commit is contained in:
Peter Steinberger
2026-05-03 00:11:12 +01:00
parent 0126dbe171
commit dfad38d153
4 changed files with 8 additions and 10 deletions

View File

@@ -138,9 +138,7 @@ describe("buildQaGatewayConfig", () => {
});
expect(getPrimaryModel(cfg.agents?.defaults?.model)).toBe("aimock/gpt-5.5");
expect(cfg.agents?.defaults?.imageGenerationModel).toEqual({
primary: "aimock/gpt-image-1",
});
expect(cfg.agents?.defaults?.imageGenerationModel).toBeUndefined();
expect(cfg.models?.providers?.aimock?.baseUrl).toBe("http://127.0.0.1:45080/v1");
expect(cfg.models?.providers?.aimock?.api).toBe("openai-responses");
expect(cfg.models?.providers?.openai?.baseUrl).toBe("http://127.0.0.1:45080/v1");

View File

@@ -1121,7 +1121,7 @@ describe("update-cli", () => {
expect(last).toBeDefined();
const parsed = last as Record<string, unknown>;
const channel = parsed.channel as { value?: unknown };
expect(channel.value).toBe("beta");
expect(channel.value).toBe("stable");
},
},
] as const)("updateStatusCommand rendering: $name", runUpdateCliScenario);

View File

@@ -79,11 +79,11 @@ describe("status-all format", () => {
}),
).toEqual({
channelInfo: {
channel: "beta",
source: "installed-version",
label: "beta (installed version)",
channel: "stable",
source: "config",
label: "stable (config)",
},
channelLabel: "beta (installed version)",
channelLabel: "stable (config)",
gitLabel: "main · tag v1.2.3",
updateLine: `git main · ↔ origin/main · behind 2 · npm update ${newerRegistryVersion}`,
updateAvailable: true,
@@ -374,7 +374,7 @@ describe("status-all format", () => {
{ Item: "Version", Value: "1.0.0" },
{ Item: "Dashboard", Value: "http://127.0.0.1:18789/" },
{ Item: "Tailscale exposure", Value: "serve · box.tail.ts.net · https://box.tail.ts.net" },
{ Item: "Channel", Value: "beta (installed version)" },
{ Item: "Channel", Value: "stable (config)" },
{ Item: "Git", Value: "main · tag v1.2.3" },
{ Item: "Update", Value: "available · custom update" },
{

View File

@@ -82,7 +82,7 @@ describe("status-overview-surface", () => {
{ Item: "OS", Value: "macOS · node 22" },
{ Item: "Dashboard", Value: "http://127.0.0.1:18789/" },
{ Item: "Tailscale exposure", Value: "muted(off · box.tail.ts.net)" },
{ Item: "Channel", Value: "beta (installed version)" },
{ Item: "Channel", Value: "stable (config)" },
{ Item: "Git", Value: "main · tag v1.2.3" },
{ Item: "Update", Value: "available · custom update" },
{