You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
672 B
24 lines
672 B
import { render } from '@testing-library/react';
|
|
// import { ThemeProvider } from "my-ui-lib"
|
|
// import { TranslationProvider } from "my-i18n-lib"
|
|
// import defaultStrings from "i18n/en-x-default"
|
|
|
|
const Providers = ({ children }) => {
|
|
return children;
|
|
// return (
|
|
// <ThemeProvider theme="light">
|
|
// <TranslationProvider messages={defaultStrings}>
|
|
// {children}
|
|
// </TranslationProvider>
|
|
// </ThemeProvider>
|
|
// )
|
|
};
|
|
|
|
const customRender = (ui, options = {}) =>
|
|
render(ui, { wrapper: Providers, ...options });
|
|
|
|
// re-export everything
|
|
export * from '@testing-library/react';
|
|
|
|
// override render method
|
|
export { customRender as render };
|
|
|