mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 14:53:19 -07:00
19 lines
449 B
TypeScript
19 lines
449 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { render } from 'ink-testing-library';
|
|
import type React from 'react';
|
|
import { KeypressProvider } from '../ui/contexts/KeypressContext.js';
|
|
|
|
export const renderWithProviders = (
|
|
component: React.ReactElement,
|
|
): ReturnType<typeof render> =>
|
|
render(
|
|
<KeypressProvider kittyProtocolEnabled={true}>
|
|
{component}
|
|
</KeypressProvider>,
|
|
);
|