dillon1000/react
Commit
Browse files Update act references in tests (#27805)
As part of the process of removing the deprecated `react-dom/test-utils` package references to `act` from this module are replaced with references to `unstable_act` in `react`. It is likely that the unstable act implementation will be made stable. The test utils act is just a reexport of the unstable_act implementation in react itself.
Changed paths7 files
First-parent comparisonfixtures/dom/src/__tests__/nested-act-test.js ModifiedM packages/react-devtools-shared/src/__tests__/utils.js ModifiedM packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js ModifiedM packages/react-dom/src/__tests__/ReactTestUtilsActUnmockedScheduler-test.js ModifiedM packages/react-refresh/src/__tests__/ReactFresh-test.js ModifiedM packages/react-refresh/src/__tests__/ReactFreshIntegration-test.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…