test: tighten command capture helper assertions

This commit is contained in:
Peter Steinberger
2026-05-08 20:53:24 +01:00
parent 7d2dd28443
commit 3a09899e2a
3 changed files with 0 additions and 3 deletions

View File

@@ -47,7 +47,6 @@ describe("requireValidConfigSnapshot", () => {
function requireFirstLog(runtime: ReturnType<typeof createRuntime>): string {
const [message] = runtime.log.mock.calls[0] ?? [];
expect(message).toBeDefined();
if (message === undefined) {
throw new Error("expected runtime log message");
}

View File

@@ -84,7 +84,6 @@ async function runGatewayPrompt(params: {
const result = await promptGatewayConfig(params.baseConfig ?? {}, makeRuntime());
const [call] = mocks.buildGatewayAuthConfig.mock.calls[0] ?? [];
expect(call).toBeDefined();
if (!call) {
throw new Error("expected gateway auth config input");
}

View File

@@ -58,7 +58,6 @@ vi.mock("../gateway/call.js", () => ({
function requireFirstRuntimeLog(): string {
const [message] = runtime.log.mock.calls[0] ?? [];
expect(message).toBeDefined();
if (message === undefined) {
throw new Error("expected health command log output");
}