mirror of
https://github.com/SomboChea/ui
synced 2024-11-17 19:54:30 +07:00
13 lines
437 B
TypeScript
13 lines
437 B
TypeScript
|
import { render } from '@testing-library/react';
|
||
|
import React from 'react';
|
||
|
|
||
|
import ThemeProvider from '../design-tokens/ThemeProvider';
|
||
|
|
||
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
||
|
const customRender = (node: React.ReactElement<any>, ...options: Array<any>) => {
|
||
|
return render(<ThemeProvider>{node}</ThemeProvider>, ...options);
|
||
|
};
|
||
|
|
||
|
export * from '@testing-library/react';
|
||
|
export { customRender as render };
|