From 51f5f4395707b6c9f28c8d502d378665a9bf7cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Wed, 29 Jul 2026 13:43:27 +0200 Subject: [PATCH] test(01-01): preserve explicit transaction contract - keep the red transaction-client call aligned with the planned signature - isolate the concurrent documentation commit from MCP test content --- src/lib/mcp/oauth/__tests__/connections.test.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/mcp/oauth/__tests__/connections.test.ts b/src/lib/mcp/oauth/__tests__/connections.test.ts index b8a5b02c9..007d3b99f 100644 --- a/src/lib/mcp/oauth/__tests__/connections.test.ts +++ b/src/lib/mcp/oauth/__tests__/connections.test.ts @@ -114,11 +114,7 @@ describe("rotateConnection — happy path", () => { it("uses the supplied transaction client for the entire rotation", async () => { TX.mcpOAuthConnection.findUnique.mockResolvedValue({ ...CONN }); - const transactionalRotate = rotateConnection as unknown as ( - args: Parameters[0], - tx: typeof TX, - ) => ReturnType; - const out = await transactionalRotate( + const out = await rotateConnection( { connectionId: "conn-1", presentedJti: "jti-current", @@ -126,7 +122,7 @@ describe("rotateConnection — happy path", () => { clientId: CONN.clientId, userId: "user-1", }, - TX, + TX as never, ); expect(out.ok).toBe(true);