Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
737fe6a9c2 |
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
parseClientConfiguration,
|
||||
} from "../../../src/application/ClientConfigurationDocument.js";
|
||||
import { readClientRegistrationStatuses } from "../../../src/application/ClientRegistrationStatus.js";
|
||||
import { npxRegistrationCommand } from "../../../src/application/ClientRegistrationIdentity.js";
|
||||
import {
|
||||
clientConfigurationAligned,
|
||||
configureClientConfiguration,
|
||||
@@ -16,6 +17,7 @@ import {
|
||||
} from "../../../src/application/SetupClientConfiguration.js";
|
||||
import { systemUninstallHost } from "../../../src/application/Uninstall.js";
|
||||
import { supportedClients } from "../../../src/application/SupportedClients.js";
|
||||
import { PRODUCT_IDENTITY } from "../../../src/identity.js";
|
||||
import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js";
|
||||
|
||||
describe.each([
|
||||
@@ -137,8 +139,9 @@ it("restores original BOM-prefixed JSONC bytes after update and removal", async
|
||||
await mkdir(dirname(client.configPath), { recursive: true });
|
||||
await writeFile(client.configPath, original);
|
||||
|
||||
const firstCommand = [join(home, "bin", "rea"), "mcp"];
|
||||
const updatedCommand = [join(home, "updated", "bin", "rea"), "mcp"];
|
||||
// Both launchers establish ownership; arbitrary absolute prefixes do not.
|
||||
const firstCommand = npxRegistrationCommand();
|
||||
const updatedCommand = [PRODUCT_IDENTITY.cliBinary, "mcp"];
|
||||
expect(
|
||||
await configureClientConfiguration(client, {}, firstCommand),
|
||||
).toMatchObject({ status: "configured" });
|
||||
|
||||
@@ -1335,7 +1335,7 @@ describe("Codex configuration comments", () => {
|
||||
await configureClientConfiguration(
|
||||
{ name: "codex", configPath, format: "toml" },
|
||||
{},
|
||||
["/isolated prefix/bin/rea", "mcp"],
|
||||
[PRODUCT_IDENTITY.cliBinary, "mcp"],
|
||||
),
|
||||
).toMatchObject({ status: "configured" });
|
||||
const configured = await readFile(configPath, "utf8");
|
||||
@@ -1505,7 +1505,7 @@ describe("client configuration filesystem removal", () => {
|
||||
cursor,
|
||||
JSON.stringify({
|
||||
mcpServers: {
|
||||
rea: { command: "/isolated prefix/bin/rea", args: ["mcp"] },
|
||||
rea: { command: PRODUCT_IDENTITY.cliBinary, args: ["mcp"] },
|
||||
other: { command: "other" },
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user