MCPcopy Create free account
hub / github.com/anus-dev/ANUS / wrapper

Function wrapper

packages/cli/src/ui/contexts/KeypressContext.test.tsx:92–102  ·  view source on GitHub ↗
({
    children,
    kittyProtocolEnabled = true,
  }: {
    children: React.ReactNode;
    kittyProtocolEnabled?: boolean;
  })

Source from the content-addressed store, hash-verified

90 const mockSetRawMode = vi.fn();
91
92 const wrapper = ({
93 children,
94 kittyProtocolEnabled = true,
95 }: {
96 children: React.ReactNode;
97 kittyProtocolEnabled?: boolean;
98 }) => (
99 <KeypressProvider kittyProtocolEnabled={kittyProtocolEnabled}>
100 {children}
101 </KeypressProvider>
102 );
103
104 beforeEach(() => {
105 vi.clearAllMocks();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected