Skip to content

Commit 10cd3e2

Browse files
committed
types
1 parent f986114 commit 10cd3e2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

client/src/components/AuthDebugger.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { CheckCircle2, Circle, ExternalLink, AlertCircle } from "lucide-react";
1717
import { AuthDebuggerState } from "../lib/auth-types";
1818
import { SESSION_KEYS, getServerSpecificKey } from "../lib/constants";
1919

20-
interface AuthDebuggerProps {
20+
export interface AuthDebuggerProps {
2121
sseUrl: string;
2222
onBack: () => void;
2323
authState: AuthDebuggerState;

client/src/components/__tests__/AuthDebugger.test.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "@testing-library/react";
88
import "@testing-library/jest-dom";
99
import { describe, it, beforeEach, jest } from "@jest/globals";
10-
import AuthDebugger from "../AuthDebugger";
10+
import AuthDebugger, { AuthDebuggerProps } from "../AuthDebugger";
1111
import { TooltipProvider } from "@/components/ui/tooltip";
1212

1313
// Mock OAuth data that matches the schemas
@@ -57,7 +57,6 @@ import {
5757
startAuthorization,
5858
exchangeAuthorization,
5959
} from "@modelcontextprotocol/sdk/client/auth.js";
60-
import { AuthDebuggerState } from "@/lib/auth-types";
6160

6261
// Type the mocked functions properly
6362
const mockDiscoverOAuthMetadata = discoverOAuthMetadata as jest.MockedFunction<
@@ -127,9 +126,7 @@ describe("AuthDebugger", () => {
127126
mockExchangeAuthorization.mockResolvedValue(mockOAuthTokens);
128127
});
129128

130-
const renderAuthDebugger = (
131-
props: { authState?: AuthDebuggerState } = {},
132-
) => {
129+
const renderAuthDebugger = (props: Partial<AuthDebuggerProps> = {}) => {
133130
const mergedProps = {
134131
...defaultProps,
135132
...props,

0 commit comments

Comments
 (0)