mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
refactor: trim test utility exports
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user