Skip to content

Commit 8e5c2ef

Browse files
committed
refactor: trim test utility exports
1 parent 1d47974 commit 8e5c2ef

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/test-utils/npm-spec-install-test-helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { expect } from "vitest";
44
import type { CommandOptions, SpawnResult } from "../process/exec.js";
55
import { expectSingleNpmInstallIgnoreScriptsCall } from "./exec-assertions.js";
66

7-
export type InstallResultLike = {
7+
type InstallResultLike = {
88
ok: boolean;
99
error?: string;
1010
};
1111

12-
export type NpmPackMetadata = {
12+
type NpmPackMetadata = {
1313
id: string;
1414
name: string;
1515
version: string;
@@ -18,7 +18,7 @@ export type NpmPackMetadata = {
1818
shasum: string;
1919
};
2020

21-
export function createSuccessfulSpawnResult(stdout = ""): SpawnResult {
21+
function createSuccessfulSpawnResult(stdout = ""): SpawnResult {
2222
return {
2323
code: 0,
2424
stdout,

src/test-utils/openclaw-test-state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import path from "node:path";
44
import { captureEnv } from "./env.js";
55
import { cleanupSessionStateForTest } from "./session-state-cleanup.js";
66

7-
export type OpenClawTestStateLayout = "home" | "state-only" | "split";
7+
type OpenClawTestStateLayout = "home" | "state-only" | "split";
88

9-
export type OpenClawTestStateScenario =
9+
type OpenClawTestStateScenario =
1010
| "empty"
1111
| "minimal"
1212
| "update-stable"

0 commit comments

Comments
 (0)