test: reuse host edit tool import

This commit is contained in:
Shakker
2026-05-09 17:25:47 +01:00
parent baeb1de015
commit 31d63d7c0b

View File

@@ -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 = "";