fix(windows): normalize namespaced path containment checks

This commit is contained in:
Shakker
2026-02-26 18:49:26 +00:00
parent dc6e4a5b13
commit f7041fbee3
6 changed files with 45 additions and 13 deletions

View File

@@ -1,3 +1,4 @@
import path from "node:path";
import { afterEach, describe, expect, it, vi } from "vitest";
import type { RuntimeEnv } from "../runtime.js";
@@ -99,7 +100,7 @@ describe("onboardCommand", () => {
expect(mocks.handleReset).toHaveBeenCalledWith(
"config+creds+sessions",
"/tmp/openclaw-custom-workspace",
path.resolve("/tmp/openclaw-custom-workspace"),
runtime,
);
});