Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

threadMcpReconnect.test.ts

13 lines462 Bytes

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