reactlynx-testing-library / renderHook
Allows you to render a hook within a test React component without having to create that component yourself.
| 类型参数 |
|---|
Result |
Props |
| 范围 | 类型 |
|---|---|
render | (initialProps: Props) => Result |
options? | RenderHookOptions<Props> |
RenderHookResult<Result, Props>
index.d.ts:1266