/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React, { FC, ReactElement } from 'react'; import { I18nProvider } from '@osd/i18n/react'; import { render, RenderOptions } from '@testing-library/react'; const AllTheProviders: FC<{ children: React.ReactNode }> = ({ children }) => { return {children}; }; const customRender = (ui: ReactElement, options?: Omit) => render(ui, { wrapper: AllTheProviders, ...options }); export * from '@testing-library/react'; export { customRender as render };