wangxingkang
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
2 deletions
-
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>(); |
|
|
|
|
|
|
|