(connections: Array<{ clientId: string; mcpRedaction?: McpRedactionConfig }>)
| 759 | describe("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 |