MCPcopy
hub / github.com/kagent-dev/kagent / useRouter

Function useRouter

ui/jest.setup.ts:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50// Mock next/router
51jest.mock('next/router', () => ({
52 useRouter() {
53 return {
54 route: '/',
55 pathname: '',
56 query: {},
57 asPath: '',
58 push: jest.fn(),
59 replace: jest.fn(),
60 };
61 },
62}));
63
64// Mock next/navigation

Callers 15

AgentListFunction · 0.85
AgentCardFunction · 0.85
AgentListRowFunction · 0.85
ChatInterfaceFunction · 0.85
AgentSwitcherFunction · 0.85
SubstratePageGuardFunction · 0.85
NewMcpServerContentFunction · 0.85
ModelsPageFunction · 0.85
ModelPageContentFunction · 0.85
PromptsPageFunction · 0.85
NewPromptContentFunction · 0.85
PromptDetailPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected