GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — ReactDOM: Remove every test-util except `act()` by eps1lon · Pull Request #28541 · react/react Conversation
|
|
Comparing: 4cc0f8e...82e3562 Critical size changesIncludes critical production bundles, as well as any change greater than 2%: Significant size changesIncludes any change greater than 0.2%: Expand to show
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5c74ee7 to
5fc850d
Compare
There was an error while loading. Please reload this page.
|
I looked into vendoring ReactTestUtils in WWW to avoiding needing additional gating here but it has too much internal usage for it to be stable. Can we apply either gating on the utils functions themselves or a build fork of the whole module? And additionally can we keep the ReactTestUtils-test with gating for www? Let me know if you want help with the additional work here. Ideally within a couple months we can fully remove. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We use special |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e36702e to
f5c3394
Compare
|
Didn't go with the special |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
65cf02e to
ce7a436
Compare
| if (disableDOMTestUtils) { | ||
| throw new Error( | ||
| '`renderIntoDocument` was removed from `react-dom/test-utils`. ' + | ||
| 'See https://react.dev/warnings/react-test-renderer for more info.', |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
TODO: Write docs
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should we generalize this warning page to something like /warnings/testing and include sections for each separate warning between ReactTestUtils and react-test-renderer?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'd probably have a page for test-renderer and test-utils
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Docs: reactjs/react.dev#6716
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (disableDOMTestUtils) { | ||
| throw new Error( | ||
| '`renderIntoDocument` was removed from `react-dom/test-utils`. ' + | ||
| 'See https://react.dev/warnings/react-test-renderer for more info.', |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should we generalize this warning page to something like /warnings/testing and include sections for each separate warning between ReactTestUtils and react-test-renderer?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| export const enableReactTestRendererWarning = false; | ||
| export const disableLegacyMode = false; | ||
| export const disableDOMTestUtils = true; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Let's keep this false for now so this is easier to land.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ce7a436 to
6f3b264
Compare
c75f7d6 to
82e3562
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.