From f81c2e75d2708b045cdbc1ab101fc8f557d70468 Mon Sep 17 00:00:00 2001 From: Onur <2453968+osolmaz@users.noreply.github.com> Date: Sun, 1 Mar 2026 18:59:43 +0100 Subject: [PATCH] Tests: make acpx config path assertions cross-platform --- extensions/acpx/src/config.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/extensions/acpx/src/config.test.ts b/extensions/acpx/src/config.test.ts index 270bf4b0ced..b447aa7c7b7 100644 --- a/extensions/acpx/src/config.test.ts +++ b/extensions/acpx/src/config.test.ts @@ -23,14 +23,15 @@ describe("acpx plugin config parsing", () => { }); it("accepts command override and disables plugin-local auto-install", () => { + const command = "/home/user/repos/acpx/dist/cli.js"; const resolved = resolveAcpxPluginConfig({ rawConfig: { - command: "/home/user/repos/acpx/dist/cli.js", + command, }, workspaceDir: "/tmp/workspace", }); - expect(resolved.command).toBe("/home/user/repos/acpx/dist/cli.js"); + expect(resolved.command).toBe(path.resolve(command)); expect(resolved.expectedVersion).toBeUndefined(); expect(resolved.allowPluginLocalInstall).toBe(false); }); @@ -62,15 +63,16 @@ describe("acpx plugin config parsing", () => { }); it("accepts exact expectedVersion override", () => { + const command = "/home/user/repos/acpx/dist/cli.js"; const resolved = resolveAcpxPluginConfig({ rawConfig: { - command: "/home/user/repos/acpx/dist/cli.js", + command, expectedVersion: "0.1.99", }, workspaceDir: "/tmp/workspace", }); - expect(resolved.command).toBe("/home/user/repos/acpx/dist/cli.js"); + expect(resolved.command).toBe(path.resolve(command)); expect(resolved.expectedVersion).toBe("0.1.99"); expect(resolved.allowPluginLocalInstall).toBe(false); });