enzymejs / enzyme

JavaScript Testing utilities for React
https://enzymejs.github.io/enzyme/
MIT License
19.96k stars 2.01k forks source link

Document `getElement(s)` for full DOM rendering #2574

Closed andrewiggins closed 1 year ago

andrewiggins commented 1 year ago

Hello!

When browsing the Enzyme docs, I noticed that getElement(s) is not documented as a method under "Full DOM Rendering" but does appear to be supported by the ReactWrapper.

Describe the solution you'd like Document the behavior of getElement(s) for full DOM rendering.

ljharb commented 1 year ago

Hm, you're right, https://enzymejs.github.io/enzyme/docs/api/ShallowWrapper/getElements.html and https://enzymejs.github.io/enzyme/docs/api/ShallowWrapper/getElement.html exist but not the ReactWrapper variants.

I'll add these.

ljharb commented 1 year ago

They'll be published the next release of enzyme.

andrewiggins commented 1 year ago

Sounds good! Thank you