Test :Add a small test for ReactTestUtils to find rendered component with type in document
I tried to write test for the ReactTestUtils to find rendered component with type in document
Tests before this PR

Tests after this PR

Comparing: 168da8d55782f3b34e2a6aa0c4dd0587696afdbd...ddc77ac7b88520f114191353f8a85788d32a4e48
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
| Name | +/- | Base | Current | +/- gzip | Base gzip | Current gzip |
|---|---|---|---|---|---|---|
| oss-stable/react-dom/cjs/react-dom.production.min.js | = | 131.43 kB | 131.43 kB | = | 42.05 kB | 42.05 kB |
| oss-experimental/react-dom/cjs/react-dom.production.min.js | = | 136.70 kB | 136.70 kB | = | 43.64 kB | 43.64 kB |
| facebook-www/ReactDOM-prod.classic.js | = | 435.12 kB | 435.12 kB | = | 79.88 kB | 79.88 kB |
| facebook-www/ReactDOM-prod.modern.js | = | 420.12 kB | 420.12 kB | = | 77.51 kB | 77.51 kB |
| facebook-www/ReactDOMForked-prod.classic.js | = | 435.12 kB | 435.12 kB | = | 79.88 kB | 79.88 kB |
Significant size changes
Includes any change greater than 0.2%:
(No significant changes)
Generated by :no_entry_sign: dangerJS against ddc77ac7b88520f114191353f8a85788d32a4e48
@gaearon could you. Review?
Seems good to me, surprised that we don't have a test like this already.
Also added some tests one month back to the react ART package too 😀 https://github.com/facebook/react/pull/23195
hey @rickhanlonii is it good to go , or there are some nits?
@gaearon friendly ping :-)
See #21309
@lunaruan could you review?
hey @sebmarkbage could you review!
hey @eps1lon seems like this can go forward as it's already been approved looking forward to your thoughts