17 lines
865 B
TypeScript
17 lines
865 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
|
|
import { MCP_QUICK_CONNECT } from "../src/app/constants";
|
|
|
|
describe("built-in OpenWork MCP visibility", () => {
|
|
test("hides internal OpenWork MCPs and omits the retired admin connector", () => {
|
|
expect(MCP_QUICK_CONNECT.find((entry) => entry.serverName === "openwork-cloud")?.defaultHidden).toBe(true);
|
|
expect(MCP_QUICK_CONNECT.find((entry) => entry.serverName === "openwork-admin")).toBeUndefined();
|
|
expect(MCP_QUICK_CONNECT.find((entry) => entry.serverName === "openwork-ui")?.defaultHidden).toBe(true);
|
|
});
|
|
|
|
test("keeps directory apps visible by default", () => {
|
|
expect(MCP_QUICK_CONNECT.find((entry) => entry.serverName === "notion")?.defaultHidden).toBeUndefined();
|
|
expect(MCP_QUICK_CONNECT.find((entry) => entry.serverName === "linear")?.defaultHidden).toBeUndefined();
|
|
});
|
|
});
|