()
| 305 | } |
| 306 | |
| 307 | function cleanup() { |
| 308 | mountedRootEntries.forEach(({root, container}) => { |
| 309 | act(() => { |
| 310 | root.unmount() |
| 311 | }) |
| 312 | if (container.parentNode === document.body) { |
| 313 | document.body.removeChild(container) |
| 314 | } |
| 315 | }) |
| 316 | mountedRootEntries.length = 0 |
| 317 | mountedContainers.clear() |
| 318 | } |
| 319 | |
| 320 | function renderHook(renderCallback, options = {}) { |
| 321 | const {initialProps, ...renderOptions} = options |
no outgoing calls
no test coverage detected
searching dependent graphs…