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" }); });