test: mock embedded runtime setup in compact hooks harness

This commit is contained in:
Josh Lehman 2026-03-20 07:10:48 -07:00
parent 4c60956d8e
commit 0b8e9866ea
No known key found for this signature in database
GPG Key ID: D141B425AC7F876B

View File

@ -252,6 +252,10 @@ export async function loadCompactHooksHarness(): Promise<{
resolveContextEngine: resolveContextEngineMock,
}));
vi.doMock("../../plugins/provider-runtime.js", () => ({
prepareProviderRuntimeAuth: vi.fn(async () => undefined),
}));
vi.doMock("../../process/command-queue.js", () => ({
enqueueCommandInLane: vi.fn((_lane: unknown, task: () => unknown) => task()),
}));
@ -375,6 +379,14 @@ export async function loadCompactHooksHarness(): Promise<{
})),
}));
vi.doMock("../pi-bundle-mcp-tools.js", () => ({
createBundleMcpToolRuntime: vi.fn(async () => undefined),
}));
vi.doMock("../pi-bundle-lsp-runtime.js", () => ({
createBundleLspToolRuntime: vi.fn(async () => undefined),
}));
vi.doMock("./sandbox-info.js", () => ({
buildEmbeddedSandboxInfo: vi.fn(() => undefined),
}));