mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 09:40:41 +00:00
test: reuse host edit tool import
This commit is contained in:
@@ -2,6 +2,7 @@ import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import { createHostWorkspaceEditTool } from "./pi-tools.read.js";
|
||||
|
||||
type CapturedEditOperations = {
|
||||
access: (absolutePath: string) => Promise<void>;
|
||||
@@ -31,8 +32,6 @@ vi.mock("@mariozechner/pi-coding-agent", async () => {
|
||||
};
|
||||
});
|
||||
|
||||
const { createHostWorkspaceEditTool } = await import("./pi-tools.read.js");
|
||||
|
||||
describe("createHostWorkspaceEditTool host access mapping", () => {
|
||||
let tmpDir = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user