dillon1000/react
Commit
Browse files [DevTools] Regression Test Jest Config (#24598)
Some older React versions have different module import names and are missing certain features. This PR mocks modules that don't exist and maps modules in older versions to the ones that are required in tests. Specifically: * In React v16.5, scheduler is named schedule * In pre concurrent React, there is no act * Prior to React v18.0, react-dom/client doesn't exist * In DevTools, we expect to use scheduler/tracing-profiling instead of scheduler/tracing
Changed paths3 files
First-parent comparisonscripts/jest/config.build-devtools.js ModifiedA scripts/jest/devtools/config.build-devtools-regression.js AddedA scripts/jest/devtools/setupTests.build-devtools-regression.js AddedPatch
Files changed
Rendering syntax-highlighted changes…