chore: remove duplicate code (#39337)

This commit is contained in:
wangxingkang 2022-12-07 11:52:17 +08:00 committed by GitHub
parent a9964d606b
commit 64744e8aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,6 @@ export const sleep = async (timeout = 0) => {
const customRender = (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) =>
render(ui, { wrapper: StrictMode, ...options });
export * from '@testing-library/react';
export function renderHook<T>(func: () => T): { result: React.RefObject<T> } {
const result = React.createRef<T>();