fix(discord): drop stale carbon deploy option

This commit is contained in:
Vincent Koc
2026-03-19 23:28:06 -07:00
parent 9af42c6590
commit 36a59d5c79
2 changed files with 2 additions and 6 deletions

View File

@@ -88,20 +88,17 @@ describe("monitorDiscordProvider", () => {
const getConstructedEventQueue = (): { listenerTimeout?: number } | undefined => {
expect(clientConstructorOptionsMock).toHaveBeenCalledTimes(1);
const opts = clientConstructorOptionsMock.mock.calls[0]?.[0] as {
commandDeploymentMode?: string;
eventQueue?: { listenerTimeout?: number };
};
return opts.eventQueue;
};
const getConstructedClientOptions = (): {
commandDeploymentMode?: string;
eventQueue?: { listenerTimeout?: number };
} => {
expect(clientConstructorOptionsMock).toHaveBeenCalledTimes(1);
return (
(clientConstructorOptionsMock.mock.calls[0]?.[0] as {
commandDeploymentMode?: string;
eventQueue?: { listenerTimeout?: number };
}) ?? {}
);
@@ -553,7 +550,7 @@ describe("monitorDiscordProvider", () => {
);
});
it("configures Carbon reconcile deployment by default", async () => {
it("configures Carbon native deploy by default", async () => {
const { monitorDiscordProvider } = await import("./provider.js");
await monitorDiscordProvider({
@@ -562,7 +559,7 @@ describe("monitorDiscordProvider", () => {
});
expect(clientHandleDeployRequestMock).toHaveBeenCalledTimes(1);
expect(getConstructedClientOptions().commandDeploymentMode).toBe("reconcile");
expect(getConstructedClientOptions().eventQueue?.listenerTimeout).toBe(120_000);
});
it("reports connected status on startup and shutdown", async () => {

View File

@@ -763,7 +763,6 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
baseUrl: "http://localhost",
deploySecret: "a",
clientId: applicationId,
commandDeploymentMode: "reconcile",
publicKey: "a",
token,
autoDeploy: false,