mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +00:00
9 lines
511 B
TypeScript
9 lines
511 B
TypeScript
import React from 'react';
|
|
import { SteerHostProvider } from '@librechat/chat/react';
|
|
import { appSteerHost } from '~/Providers/SteerHostContext';
|
|
|
|
/** Mounts the app's steer host the way `routes/Root.tsx` does, for specs that render the steer
|
|
* hooks outside the app shell. Import it after the spec's module mocks so the host uses them. */
|
|
export function SteerHostTestProvider({ children }: { children?: React.ReactNode }) {
|
|
return <SteerHostProvider host={appSteerHost}>{children}</SteerHostProvider>;
|
|
}
|