refactor: trim runtime test helper type exports

This commit is contained in:
Peter Steinberger
2026-05-01 12:16:51 +01:00
parent caa7f7c4cc
commit e5d2273e05
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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"];

View File

@@ -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]>;