mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:10:43 +00:00
refactor: trim runtime test helper type exports
This commit is contained in:
@@ -4,7 +4,7 @@ import path from "node:path";
|
||||
import { afterAll, beforeAll, vi, type Mock } from "vitest";
|
||||
import { withFastReplyConfig } from "./reply/get-reply-fast-path.js";
|
||||
|
||||
export type ReplyRuntimeMocks = {
|
||||
type ReplyRuntimeMocks = {
|
||||
runEmbeddedPiAgent: Mock;
|
||||
loadModelCatalog: Mock;
|
||||
webAuthExists: Mock;
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { RuntimeEnv } from "../runtime.js";
|
||||
|
||||
type RuntimeLike = Pick<RuntimeEnv, "log" | "error" | "exit">;
|
||||
|
||||
export type NonInteractiveRuntime = {
|
||||
type NonInteractiveRuntime = {
|
||||
log: RuntimeLike["log"];
|
||||
error: RuntimeLike["error"];
|
||||
exit: RuntimeLike["exit"];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { vi } from "vitest";
|
||||
import { agentCommand } from "./test-helpers.runtime-state.js";
|
||||
|
||||
export type AgentCommandCall = Record<string, unknown>;
|
||||
type AgentCommandCall = Record<string, unknown>;
|
||||
|
||||
function agentCommandCalls(): Array<[AgentCommandCall]> {
|
||||
return vi.mocked(agentCommand).mock.calls as unknown as Array<[AgentCommandCall]>;
|
||||
|
||||
Reference in New Issue
Block a user