test: fix current-main prep blockers (#61582)

Merged via squash.

Prepared head SHA: 49f7b121aa
Reviewed-by: @mbelinky
This commit is contained in:
Mariano
2026-04-06 03:33:47 +02:00
committed by GitHub
parent 520500f007
commit c7b7dc335e
2 changed files with 2 additions and 1 deletions

View File

@@ -200,6 +200,7 @@ vi.mock("../utils/message-channel.js", () => ({
const resolveEffectiveModelFallbacksMock = vi.fn().mockReturnValue(undefined);
vi.mock("./agent-scope.js", () => ({
listAgentIds: () => ["default"],
resolveAgentConfig: () => undefined,
resolveAgentDir: () => "/tmp/agent",
resolveEffectiveModelFallbacks: resolveEffectiveModelFallbacksMock,
resolveSessionAgentId: () => "default",

View File

@@ -236,7 +236,7 @@ describe("registerPreActionHooks", () => {
expect(ensureConfigReadyMock).toHaveBeenCalledWith({
runtime: runtimeMock,
commandPath: ["agent"],
commandPath: ["agent", "hi"],
});
expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledWith({ scope: "all" });
});