perf(test): mock compact module in auth rotation e2e

This commit is contained in:
Peter Steinberger
2026-02-22 10:02:09 +00:00
parent eda941f395
commit a96139e18c

View File

@@ -12,6 +12,12 @@ vi.mock("./pi-embedded-runner/run/attempt.js", () => ({
runEmbeddedAttempt: (params: unknown) => runEmbeddedAttemptMock(params),
}));
vi.mock("./pi-embedded-runner/compact.js", () => ({
compactEmbeddedPiSessionDirect: vi.fn(async () => {
throw new Error("compact should not run in auth profile rotation tests");
}),
}));
vi.mock("./models-config.js", async (importOriginal) => {
const mod = await importOriginal<typeof import("./models-config.js")>();
return {