test: reuse host edit tool import · openclaw/openclaw@31d63d7
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 fs from "node:fs/promises";
|
2 | 2 | import os from "node:os"; |
3 | 3 | import path from "node:path"; |
4 | 4 | import { afterEach, describe, expect, it, vi } from "vitest"; |
| 5 | +import { createHostWorkspaceEditTool } from "./pi-tools.read.js"; |
5 | 6 | |
6 | 7 | type CapturedEditOperations = { |
7 | 8 | access: (absolutePath: string) => Promise<void>; |
@@ -31,8 +32,6 @@ vi.mock("@mariozechner/pi-coding-agent", async () => {
|
31 | 32 | }; |
32 | 33 | }); |
33 | 34 | |
34 | | -const { createHostWorkspaceEditTool } = await import("./pi-tools.read.js"); |
35 | | - |
36 | 35 | describe("createHostWorkspaceEditTool host access mapping", () => { |
37 | 36 | let tmpDir = ""; |
38 | 37 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。