From 2a58af2ae2d70560bf0e3502ee4ecbbabb955eb8 Mon Sep 17 00:00:00 2001 From: MaxxxDong <186893345+MaxxxDong@users.noreply.github.com> Date: Fri, 20 Mar 2026 18:32:10 +0800 Subject: [PATCH] test(plugins): normalize windows shim path assertion --- src/plugins/loader.git-path-regression.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/loader.git-path-regression.test.ts b/src/plugins/loader.git-path-regression.test.ts index 7be218f21e4..ff89c203bf2 100644 --- a/src/plugins/loader.git-path-regression.test.ts +++ b/src/plugins/loader.git-path-regression.test.ts @@ -88,7 +88,9 @@ export const copiedRuntimeMarker = { // and that behavior is orthogonal to the #49806 alias regression this test // is protecting. const withAlias = createJiti(jitiBaseUrl, jitiOptions); - expect(withAlias.resolve("openclaw/plugin-sdk/channel-runtime")).toBe(copiedChannelRuntimeShim); + expect(path.normalize(withAlias.resolve("openclaw/plugin-sdk/channel-runtime"))).toBe( + path.normalize(copiedChannelRuntimeShim), + ); expect(fs.readFileSync(copiedChannelRuntime, "utf-8")).toContain( 'from "openclaw/plugin-sdk/channel-runtime"', );