refactor: trim runtime test helper type exports · openclaw/openclaw@e5d2273
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import path from "node:path";
|
4 | 4 | import { afterAll, beforeAll, vi, type Mock } from "vitest"; |
5 | 5 | import { withFastReplyConfig } from "./reply/get-reply-fast-path.js"; |
6 | 6 | |
7 | | -export type ReplyRuntimeMocks = { |
| 7 | +type ReplyRuntimeMocks = { |
8 | 8 | runEmbeddedPiAgent: Mock; |
9 | 9 | loadModelCatalog: Mock; |
10 | 10 | webAuthExists: Mock; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import type { RuntimeEnv } from "../runtime.js";
|
2 | 2 | |
3 | 3 | type RuntimeLike = Pick<RuntimeEnv, "log" | "error" | "exit">; |
4 | 4 | |
5 | | -export type NonInteractiveRuntime = { |
| 5 | +type NonInteractiveRuntime = { |
6 | 6 | log: RuntimeLike["log"]; |
7 | 7 | error: RuntimeLike["error"]; |
8 | 8 | exit: RuntimeLike["exit"]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { vi } from "vitest"; |
2 | 2 | import { agentCommand } from "./test-helpers.runtime-state.js"; |
3 | 3 | |
4 | | -export type AgentCommandCall = Record<string, unknown>; |
| 4 | +type AgentCommandCall = Record<string, unknown>; |
5 | 5 | |
6 | 6 | function agentCommandCalls(): Array<[AgentCommandCall]> { |
7 | 7 | return vi.mocked(agentCommand).mock.calls as unknown as Array<[AgentCommandCall]>; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。