1
0
mirror of https://github.com/SomboChea/ui synced 2024-09-29 12:57:52 +07:00
verdaccio-ui/src/utils/test-react-testing-library.tsx

12 lines
367 B
TypeScript
Raw Normal View History

import { render } from '@testing-library/react';
import React from 'react';
import ThemeProvider from '../design-tokens/ThemeProvider';
const customRender = (node: React.ReactElement<any>, ...options: Array<any>) => {
return render(<ThemeProvider>{node}</ThemeProvider>, ...options);
};
export * from '@testing-library/react';
export { customRender as render };