test(plugins): normalize windows shim path assertion

This commit is contained in:
MaxxxDong 2026-03-20 18:32:10 +08:00
parent 46fa94f303
commit 2a58af2ae2

View File

@ -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"',
);