preact-testing-library
preact-testing-library copied to clipboard
fix: correct type of `wrapper` property in `RenderOptions`
What:
The type of wrapper property in RenderOptions is mistyped, causing the children prop to be inferred as any.
Why:
The wrapper property should be a component instead of an element, just like that in RenderHookOptions.
How:
The type of wrapper property in RenderOptions is changed from ComponentChild to ComponentType<{ children: Element }>.
Checklist:
- [ ] Documentation added
N/A - [ ] Tests
N/A - [x] Typescript definitions updated
- [x] Ready to be merged