From 3a09899e2a4fa7234760b4ab9eb906de236ae730 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 8 May 2026 20:53:24 +0100 Subject: [PATCH] test: tighten command capture helper assertions --- src/commands/config-validation.test.ts | 1 - src/commands/configure.gateway.test.ts | 1 - src/commands/health.test.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/src/commands/config-validation.test.ts b/src/commands/config-validation.test.ts index 5f0d3cc1737..81b7a0550d3 100644 --- a/src/commands/config-validation.test.ts +++ b/src/commands/config-validation.test.ts @@ -47,7 +47,6 @@ describe("requireValidConfigSnapshot", () => { function requireFirstLog(runtime: ReturnType): string { const [message] = runtime.log.mock.calls[0] ?? []; - expect(message).toBeDefined(); if (message === undefined) { throw new Error("expected runtime log message"); } diff --git a/src/commands/configure.gateway.test.ts b/src/commands/configure.gateway.test.ts index 2796ff16c32..2cdff2563bd 100644 --- a/src/commands/configure.gateway.test.ts +++ b/src/commands/configure.gateway.test.ts @@ -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"); } diff --git a/src/commands/health.test.ts b/src/commands/health.test.ts index ae85944cc55..0dee0a5ad03 100644 --- a/src/commands/health.test.ts +++ b/src/commands/health.test.ts @@ -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"); }