Browse Source

chore: remove duplicate code (#39337)

pull/39230/head
wangxingkang 2 years ago
committed by GitHub
parent
commit
64744e8aa2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tests/utils.tsx

2
tests/utils.tsx

@ -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>();

Loading…
Cancel
Save