test(api): add unit tests for Jira/Confluence/GitLab helpers, drop obsolete shell test

This commit is contained in:
Aleksey Shakhmatov
2026-08-06 14:43:20 +03:00
parent f802f06930
commit 7804681356
5 changed files with 79 additions and 1285 deletions
-13
View File
@@ -25,7 +25,6 @@ import secretScanner from "../extensions/secret-scanner.ts";
import commitGuard from "../extensions/commit-guard.ts";
import llmRedaction from "../extensions/llm-redaction.ts";
import companyContext from "../extensions/company-context.ts";
import mcpBridge from "../extensions/mcp-bridge.ts";
import { redact, scanSecrets } from "../extensions/lib/secrets.ts";
import { normalize, renderContext, fetchRemoteConfig, MAX_CONTEXT_LINES } from "../extensions/lib/company-config.ts";
@@ -166,18 +165,6 @@ async function run() {
check("company-context: registers /kit-config", grabCommands(companyContext).includes("kit-config"));
}
// --- mcp-bridge: disabled servers must not connect or error ---
{
const registered: string[] = [];
const tools: string[] = [];
await mcpBridge({
registerCommand: (name: string) => registered.push(name),
registerTool: () => tools.push("x"),
on() {},
} as any);
check("mcp-bridge: registers /mcp-status", registered.includes("mcp-status"));
check("mcp-bridge: no tools with all servers disabled", tools.length === 0);
}
console.log(fails === 0 ? "\nALL PASS" : `\n${fails} FAILED`);
process.exit(fails === 0 ? 0 : 1);