refactor: trim test utility exports

This commit is contained in:
Peter Steinberger
2026-05-01 12:51:47 +01:00
parent 1d47974f89
commit 8e5c2efb8d
2 changed files with 5 additions and 5 deletions

View File

@@ -4,12 +4,12 @@ import { expect } from "vitest";
import type { CommandOptions, SpawnResult } from "../process/exec.js";
import { expectSingleNpmInstallIgnoreScriptsCall } from "./exec-assertions.js";
export type InstallResultLike = {
type InstallResultLike = {
ok: boolean;
error?: string;
};
export type NpmPackMetadata = {
type NpmPackMetadata = {
id: string;
name: string;
version: string;
@@ -18,7 +18,7 @@ export type NpmPackMetadata = {
shasum: string;
};
export function createSuccessfulSpawnResult(stdout = ""): SpawnResult {
function createSuccessfulSpawnResult(stdout = ""): SpawnResult {
return {
code: 0,
stdout,

View File

@@ -4,9 +4,9 @@ import path from "node:path";
import { captureEnv } from "./env.js";
import { cleanupSessionStateForTest } from "./session-state-cleanup.js";
export type OpenClawTestStateLayout = "home" | "state-only" | "split";
type OpenClawTestStateLayout = "home" | "state-only" | "split";
export type OpenClawTestStateScenario =
type OpenClawTestStateScenario =
| "empty"
| "minimal"
| "update-stable"