(render, options)
| 38 | // export renderHook and actHook from testing-library/react-hooks library if they don't exist in @testing-library/react |
| 39 | // (i.e. renderHook is only in v13+ of testing library) |
| 40 | export let renderHook: typeof originalRenderHook = (render, options) => |
| 41 | reactTestingLibrary.renderHook(render, {wrapper: StrictModeWrapper, ...options}); |
| 42 | export let actHook = reactTestingLibrary.act as typeof originalAct; |
| 43 | if (!reactTestingLibrary.renderHook) { |
| 44 | let rhtl = require('@testing-library/react-hooks'); |
no outgoing calls