From 6b14498d2f935263b164c6489279fd554d04d46a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 19 Feb 2026 09:35:33 +0000 Subject: [PATCH] test(lobster): use lobster.exe in windows plugin path case --- extensions/lobster/src/lobster-tool.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/lobster/src/lobster-tool.test.ts b/extensions/lobster/src/lobster-tool.test.ts index 13b0a4c727..618e9e64dd 100644 --- a/extensions/lobster/src/lobster-tool.test.ts +++ b/extensions/lobster/src/lobster-tool.test.ts @@ -242,7 +242,10 @@ describe("lobster plugin tool", () => { }), }); - const tool = createLobsterTool(fakeApi({ pluginConfig: { lobsterPath: lobsterBinPath } })); + const configuredLobsterPath = process.platform === "win32" ? lobsterExePath : lobsterBinPath; + const tool = createLobsterTool( + fakeApi({ pluginConfig: { lobsterPath: configuredLobsterPath } }), + ); const res = await tool.execute("call-plugin-config", { action: "run", pipeline: "noop", @@ -251,7 +254,7 @@ describe("lobster plugin tool", () => { expect(spawnState.spawn).toHaveBeenCalled(); const [execPath] = spawnState.spawn.mock.calls[0] ?? []; - expect(execPath).toBe(lobsterBinPath); + expect(execPath).toBe(configuredLobsterPath); expect(res.details).toMatchObject({ ok: true, status: "ok" }); });