From 29d9a304972b52af892621fea4a910a2410e5c9d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 12:42:16 +0100 Subject: [PATCH] refactor: trim command test helper exports --- src/commands/channel-test-registry.ts | 2 +- src/commands/cleanup-command.test-support.ts | 10 +++++----- src/commands/test-runtime-config-helpers.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/channel-test-registry.ts b/src/commands/channel-test-registry.ts index ebc66dbeb3f..71dd03447bd 100644 --- a/src/commands/channel-test-registry.ts +++ b/src/commands/channel-test-registry.ts @@ -23,7 +23,7 @@ function createChannelTestRuntime(): PluginRuntime { } as PluginRuntime; } -export function setChannelPluginRegistryForTests(onlyPluginIds?: readonly string[]): void { +function setChannelPluginRegistryForTests(onlyPluginIds?: readonly string[]): void { const plugins = resolveChannelPluginsForTests(onlyPluginIds); const runtime = createChannelTestRuntime(); for (const plugin of plugins) { diff --git a/src/commands/cleanup-command.test-support.ts b/src/commands/cleanup-command.test-support.ts index a6263c15f4b..1601017d6a6 100644 --- a/src/commands/cleanup-command.test-support.ts +++ b/src/commands/cleanup-command.test-support.ts @@ -1,11 +1,11 @@ import { vi } from "vitest"; import { createNonExitingRuntime, type RuntimeEnv } from "../runtime.js"; -export const resolveCleanupPlanFromDisk = vi.fn(); -export const removePath = vi.fn(); -export const listAgentSessionDirs = vi.fn(); -export const removeStateAndLinkedPaths = vi.fn(); -export const removeWorkspaceDirs = vi.fn(); +const resolveCleanupPlanFromDisk = vi.fn(); +const removePath = vi.fn(); +const listAgentSessionDirs = vi.fn(); +const removeStateAndLinkedPaths = vi.fn(); +const removeWorkspaceDirs = vi.fn(); vi.mock("../config/config.js", () => ({ isNixMode: false, diff --git a/src/commands/test-runtime-config-helpers.ts b/src/commands/test-runtime-config-helpers.ts index 5769925df04..d308557e029 100644 --- a/src/commands/test-runtime-config-helpers.ts +++ b/src/commands/test-runtime-config-helpers.ts @@ -13,13 +13,13 @@ export const baseConfigSnapshot = { legacyIssues: [], }; -export type TestRuntime = { +type TestRuntime = { log: MockFn; error: MockFn; exit: MockFn; }; -export type CapturingTestRuntime = { +type CapturingTestRuntime = { runtime: RuntimeEnv; logs: string[]; errors: string[];