test: reuse compaction fallback import · openclaw/openclaw@b655234
shakkernerd
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,6 +2,7 @@ import type { AgentMessage } from "@mariozechner/pi-agent-core";
|
2 | 2 | import type { UserMessage } from "@mariozechner/pi-ai"; |
3 | 3 | import type { ExtensionContext } from "@mariozechner/pi-coding-agent"; |
4 | 4 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
| 5 | +import { summarizeWithFallback } from "./compaction.js"; |
5 | 6 | |
6 | 7 | const piCodingAgentMocks = vi.hoisted(() => ({ |
7 | 8 | generateSummary: vi.fn(), |
@@ -19,8 +20,6 @@ vi.mock("@mariozechner/pi-coding-agent", async () => {
|
19 | 20 | }; |
20 | 21 | }); |
21 | 22 | |
22 | | -const { summarizeWithFallback } = await import("./compaction.js"); |
23 | | - |
24 | 23 | const testModel = { |
25 | 24 | id: "test", |
26 | 25 | name: "test", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。