Skip to content

Commit 29d9a30

Browse files
committed
refactor: trim command test helper exports
1 parent 7b3dfbf commit 29d9a30

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/commands/channel-test-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function createChannelTestRuntime(): PluginRuntime {
2323
} as PluginRuntime;
2424
}
2525

26-
export function setChannelPluginRegistryForTests(onlyPluginIds?: readonly string[]): void {
26+
function setChannelPluginRegistryForTests(onlyPluginIds?: readonly string[]): void {
2727
const plugins = resolveChannelPluginsForTests(onlyPluginIds);
2828
const runtime = createChannelTestRuntime();
2929
for (const plugin of plugins) {

src/commands/cleanup-command.test-support.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { vi } from "vitest";
22
import { createNonExitingRuntime, type RuntimeEnv } from "../runtime.js";
33

4-
export const resolveCleanupPlanFromDisk = vi.fn();
5-
export const removePath = vi.fn();
6-
export const listAgentSessionDirs = vi.fn();
7-
export const removeStateAndLinkedPaths = vi.fn();
8-
export const removeWorkspaceDirs = vi.fn();
4+
const resolveCleanupPlanFromDisk = vi.fn();
5+
const removePath = vi.fn();
6+
const listAgentSessionDirs = vi.fn();
7+
const removeStateAndLinkedPaths = vi.fn();
8+
const removeWorkspaceDirs = vi.fn();
99

1010
vi.mock("../config/config.js", () => ({
1111
isNixMode: false,

src/commands/test-runtime-config-helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ export const baseConfigSnapshot = {
1313
legacyIssues: [],
1414
};
1515

16-
export type TestRuntime = {
16+
type TestRuntime = {
1717
log: MockFn<RuntimeEnv["log"]>;
1818
error: MockFn<RuntimeEnv["error"]>;
1919
exit: MockFn<RuntimeEnv["exit"]>;
2020
};
2121

22-
export type CapturingTestRuntime = {
22+
type CapturingTestRuntime = {
2323
runtime: RuntimeEnv;
2424
logs: string[];
2525
errors: string[];

0 commit comments

Comments
 (0)