test(ci): restore client registration and doctor checks (#9128)

Apply the two-file repair proposed in #9109 to unblock main CI. Preserve every original test assertion and use the current registration command owner.

Co-authored-by: gensokyo-dev <[email protected]>
This commit is contained in:
gensokyo-devandgensokyo-dev authored and GitHub committed 2026-11-06 18:15:25 +08:00
1 parent aefd903adb
commit fe27f96720
2 files changed
+7 -3

No files matched your search

+3 -1
View File
@@ -4,7 +4,7 @@ import { workspaceCliTest } from "../../support/cli/workspaceCliFixture.js";
const CLI_INTEGRATION_TIMEOUT_MS = 60_000;
describe("MCP doctor help boundary", () => {
describe("MCP doctor output routing boundary", () => {
workspaceCliTest(
"keeps output options from selecting the CLI-derived MCP doctor",
async ({ cli }) => {
@@ -43,7 +43,9 @@ describe("MCP doctor help boundary", () => {
},
CLI_INTEGRATION_TIMEOUT_MS,
);
});
describe("MCP doctor help boundary", () => {
workspaceCliTest(
"answers the advertised help option instead of validating it",
async ({ cli }) => {
@@ -4,7 +4,7 @@ import { join } from "node:path";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { readClientRegistrationStatuses } from "../../../src/application/ClientRegistrationStatus.js";
import { npxRegistrationCommand } from "../../../src/application/ClientRegistrationIdentity.js";
import { currentClientRegistrationCommand } from "../../../src/application/ClientRegistrationIdentity.js";
import { configureClientConfiguration } from "../../../src/application/SetupClientConfiguration.js";
import { skillDestinations } from "../../../src/application/SetupSkill.js";
import { supportedClients } from "../../../src/application/SupportedClients.js";
@@ -12,7 +12,9 @@ import { systemUninstallHost } from "../../../src/application/Uninstall.js";
import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js";
import { clearClientLocationEnvironment } from "../../fixtures/clientEnvironment.js";
const command = npxRegistrationCommand(process.platform);
const command = currentClientRegistrationCommand({
platform: process.platform,
});
beforeEach(clearClientLocationEnvironment);
afterEach(() => vi.unstubAllEnvs());