Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import { isReconnectMcpCommand } from "./threadMcpReconnect.ts";
4
5describe("isReconnectMcpCommand", () => {
6 it("recognizes a standalone reconnect command", () => {
7 expect(isReconnectMcpCommand(" /RECONNECT-MCP ")).toBe(true);
8 });
9
10 it("does not consume prompts that merely start with the command", () => {
11 expect(isReconnectMcpCommand("/reconnect-mcp after this turn")).toBe(false);
12 });
13});