MCPcopy Index your code
hub / github.com/infinitered/reactotron / mockServer

Function mockServer

lib/reactotron-mcp/test/redaction.test.ts:761–763  ·  view source on GitHub ↗
(connections: Array<{ clientId: string; mcpRedaction?: McpRedactionConfig }>)

Source from the content-addressed store, hash-verified

759describe("createRedactor()", () => {
760 // Minimal mock: connections is the only field createRedactor reaches into.
761 function mockServer(connections: Array<{ clientId: string; mcpRedaction?: McpRedactionConfig }>) {
762 return { connections } as any
763 }
764
765 test("memoizes rule resolution per clientId", () => {
766 // Spy on resolveEffectiveRules by counting how many times the underlying

Callers 1

redaction.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected